Skip to content

Commit ec61d2d

Browse files
vakrilovMartoYankov
vakrilov
authored andcommitted
feat: NativeScript 4.0 integration
Angular application is started with `application.run()` which means the the root view of the app will be the root view of the `AppComponent`. Previous behavior: Anagular application was started with `application.start()` - this aways creates a root `Frame`. The platfrom bootstrap was always creating the inital `Page` and loading the `AppComponent` inside. The `<page-router-outlet>` will create a Frame as a native element and will create a page for each component activated in it (including the inital page).
1 parent f84fbdc commit ec61d2d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

nativescript-angular/platform-common.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,3 +255,5 @@ export class NativeScriptPlatformRef extends PlatformRef {
255255
return errorTextBox;
256256
}
257257
}
258+
259+
class RootView extends ContentView {}

nativescript-angular/router/ns-location-strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class NSLocationStrategy extends LocationStrategy {
3434

3535
constructor(private frameService: FrameService) {
3636
super();
37-
routerLog("NSLocationStrategy.constructor()");
37+
routerLog("NSLocationStrategy.constructor() frame: " + this.frame);
3838
}
3939

4040
path(): string {

0 commit comments

Comments
 (0)