简体   繁体   中英

Angular 2 router.navigate()

I have a serious issue when I am trying to navigate on a different page Angular 2 router.navigate()

I have to reload the page each and every time without it, I am not able to load the data with html.. service is running fine and I am getting the data each time when I route to the page need help..

Please suggest me how can I fix it without reloading and if not.

Is there any other trick ?

Don't suggest me window.location.reload function..

Help me please

if you navigating a page by click on button add (click) function like feature($event) in your tsfile

feature(event)
        {
        this._router.navigate.navigate(['/dashboard/featured']);
        event.preventDefault();
        event.stopPropagation();
        }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM