angular Component no reload
{
path: 'content/:nodeId/:key',
component: ContentComponent
}
url:
- content/1/1
- content/2/1
- content/3/1
ContentComponent is singleton mode?
angular Component no reload
{
path: 'content/:nodeId/:key',
component: ContentComponent
}
url:
ContentComponent is singleton mode?
The component will not reload if you navigate to it with the router or an anchor tag that users a routerLink. It will reload it you type the url in the browser address bar.
Components will not reload - it's kind of single page application where Angular helps you to route to different components without loading - this happens when you use routerLink or router.navigate() methods
Instead of routerLink use href on your html with the route name the page will reload for you - hope this helps - happy coding :)