How to initialize an Angular2 componenet after going through a _router.navigation
?
I mean I want to go to component without refreshing the browser but trigger the onChange
function or the init
function of the component to have the initial config of my variables.
let link = ["componant/" + id+ "/sub/"+id]
this._router.navigate(link)