- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 240
Closed
Description
From @bytesoftly on June 14, 2018 10:20
When using a router-outlet by itself in an app with Angular for Android causes the following exception:
Error: java.lang.IllegalArgumentException: Cannot add a null child to a ViewGroup
On reading router documentation I was not clear on why this happens, there is no mention that router-outlet components cannot be used in this way compared to page-router-outlet components.
I believe this tutorial on your site would not currently work with Nativescript 4.0.0 for this reason and that the breaking change happened at some point between that tutorial and now.
Reproduction
To reproduce this error, try the following:
- Create a new Angular project tns create tester --ng
- Open up app.component.html and replace <page-router-outlet></page-router-outlet>with<router-outlet></router-outlet>
- Run tns debug androidand an uncaught Java exception will be thrown
Version
Nativescript 4.0.0
Copied from original issue: NativeScript/NativeScript#5955
CoreyCole
Metadata
Metadata
Assignees
Labels
No labels