Search Posts

Category: import

Angular rerouting to home page doesn’t work?

Here is my error: core.es5.js:1020 ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: ‘home’ This is the code from the view.html: <div class=”container”> This is the main app; <a routerLink=”second”>Click to go to second</a> <a routerLink=”third”>Click to go to third</a> <a routerLink=”home”>Go to Home</a> <router-outlet></router-outlet> </div> And this is my array of objects which includes the path to the home and other paths. The path to the home is correct, hence […]