angular - Refresh Angular2 page progamatically without all app reloading -
what method refresh route in angular 2 programatically in order trigger oninit hook?
maybe there single method refresh current route.
from:
https://angular.io/docs/ts/latest/api/router/router-class.html
renavigate() : promise<any>
navigates either last url navigated to, or last url requested if router has yet navigate.
inject router , call renavigate()
method:
this._router.renavigate();
Comments
Post a Comment