NathanWalker / nativescript-ng2-magic

Magically turn your Angular2 web app into a NativeScript app.
MIT License
64 stars 14 forks source link

Using new @Router disregards ngOnInit #8

Closed sushruth closed 8 years ago

sushruth commented 8 years ago

When using the Router module from @angular/Router (for routing in code), the app throws an error

EXCEPTION: Error: Uncaught (in promise): Cannot find default outlet

Using ngOnInit to run the code below, wont help.

this.router.navigate(['/auth'])

Should I downgrade my Router to RouterConfig and use useDefault: true ?

NathanWalker commented 8 years ago

Not sure here @sushruth this sounds like an issue related to angular router and not magic lib?