Closed sushruth closed 8 years ago
When using the Router module from @angular/Router (for routing in code), the app throws an error
Router
@angular/Router
EXCEPTION: Error: Uncaught (in promise): Cannot find default outlet
Using ngOnInit to run the code below, wont help.
ngOnInit
this.router.navigate(['/auth'])
Should I downgrade my Router to RouterConfig and use useDefault: true ?
useDefault: true
Not sure here @sushruth this sounds like an issue related to angular router and not magic lib?
When using the
Router
module from@angular/Router
(for routing in code), the app throws an errorUsing
ngOnInit
to run the code below, wont help.Should I downgrade my Router to RouterConfig and use
useDefault: true
?