I made a change to a component to add configureRouter() to grab the router
object.
configureRouter(config: RouterConfiguration, router: Router) {
this.router = router;
}
When navigating to that component, however, I got a Route not found:
error and navigation was halted. I’m sure this is the expected behavior, but from the documentation one would never know that.
Is there clarification on this behavior? Also, how to grab the router in a component if configureRouter()
can only be implemented on root components?