Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.

Commit 3567c17

Browse files
authored
Merge pull request #1317 from CoreyCole/patch-1
docs: router-outlet vs page-router-outlet
2 parents 3e57813 + 6bbd42a commit 3567c17

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/core-concepts/angular-navigation.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,16 @@ Note that we can now use the **Back button** and the **NavigationBar** to naviga
9090

9191
It is possible to nest `<router-outlet>` component inside `<page-router-outlet>` or another `<router-outlet>`.
9292

93+
### Using router-outlet Instead of page-router-outlet
94+
95+
In some cases, you might want to create an application without using `page-router-outlet`. To achieve that with nativescript-angular version 6 and above an additional bootstrap parameter called `createFrameOnBootstrap` must be provided to create a `Frame` during the bootstrapping.
96+
97+
app/main.ts
98+
```TypeScript
99+
platformNativeScriptDynamic({ createFrameOnBootstrap: true }).bootstrapModule(AppModule);
100+
101+
```
102+
93103
## Navigation Options
94104

95105
You can define the trigger in your application declaratively - using the `nsRouterLink` directive in your markup. Or you can do it through code - by injecting the `RouterExtensions` class and using its methods:
@@ -190,13 +200,3 @@ So, instead of:
190200

191201
You do:
192202
{%snippet router-params-page-route%}
193-
194-
## Application Without Page Router Outlet
195-
196-
In some cases, you might want to create an application without using `page-router-outlet`. To achieve that with nativescript-angular version 6 and above an additional bootstrap parameter called `createFrameOnBootstrap` must be provided to create a `Frame` during the bootstrapping.
197-
198-
app/main.ts
199-
```TypeScript
200-
platformNativeScriptDynamic({ createFrameOnBootstrap: true }).bootstrapModule(AppModule);
201-
202-
```

0 commit comments

Comments
 (0)