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

docs: router-outlet vs page-router-outlet #1317

Merged
merged 1 commit into from
Aug 21, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions docs/core-concepts/angular-navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,16 @@ Note that we can now use the **Back button** and the **NavigationBar** to naviga

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

### Using router-outlet Instead of page-router-outlet

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.

app/main.ts
```TypeScript
platformNativeScriptDynamic({ createFrameOnBootstrap: true }).bootstrapModule(AppModule);

```

## Navigation Options

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:
Expand Down Expand Up @@ -190,13 +200,3 @@ So, instead of:

You do:
{%snippet router-params-page-route%}

## Application Without Page Router Outlet

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.

app/main.ts
```TypeScript
platformNativeScriptDynamic({ createFrameOnBootstrap: true }).bootstrapModule(AppModule);

```