concept router outlet in category nativescript

appears as: router outlet
NativeScript in Action

This is an excerpt from Manning's book NativeScript in Action.

  • Step 3: Create a router outlet in the app component to manage control navigation
  • Listing 16.10 shows the changes you need to make to the app.component.ts file to define the router outlet.

    Listing 16.10 The app.component.ts file that defines the router outlet for the Pet Scrapbook
    import { Component } from "@angular/core"; @Component({ selector: "my-app", template: "<page-router-outlet></page-router-outlet>" #1 }) export class AppComponent {} #1 Change the template to load Angular’s page router outlet component