Nativescript + Angular 2 base screen template -
is possible create base screen template (master screen) , use in other screens? example have application component this
@component({ selector: "main", directives: [ns_router_directives, bar], template : ` <stacklayout orientation="vertical"> <bar-component> </bar-component> <page-router-outlet></page-router-outlet> </stacklayout> ` })
i'd have in screens, have on first screen ("" route) , after changing screen using this._router.navigate(["/details"]);
("details" route) can't see . do wrong? tell please how can create functionality if it's possible.
try use <router-outlet></router-outlet>
instead of <page-router-outlet>
.
i think test code nativescript angular, shows want do: https://github.com/nativescript/nativescript-angular/blob/master/ng-sample/app/examples/router/router-outlet-test.ts
Comments
Post a Comment