From 6bbd42a0ec78957751530f48d13b94ef620a1198 Mon Sep 17 00:00:00 2001 From: Corey Cole Date: Mon, 20 Aug 2018 11:37:46 -0700 Subject: [PATCH] docs: router-outlet vs page-router-outlet Move important details about router-outlet next to relevant information in the documentation apge. --- docs/core-concepts/angular-navigation.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/core-concepts/angular-navigation.md b/docs/core-concepts/angular-navigation.md index 2af053b30..894f994e4 100644 --- a/docs/core-concepts/angular-navigation.md +++ b/docs/core-concepts/angular-navigation.md @@ -90,6 +90,16 @@ Note that we can now use the **Back button** and the **NavigationBar** to naviga It is possible to nest `` component inside `` or another ``. +### 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: @@ -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); - -```