File tree 8 files changed +21
-14
lines changed
e2e/modal-navigation-ng/app
8 files changed +21
-14
lines changed Original file line number Diff line number Diff line change 1
1
import { Component , ViewContainerRef } from "@angular/core" ;
2
2
import { Router , NavigationEnd } from "@angular/router" ;
3
- // import { NSLocationStrategy } from "nativescript-angular/router/ns-location-strategy";
3
+ import { NSLocationStrategy } from "nativescript-angular/router/ns-location-strategy" ;
4
4
5
5
import { ViewContainerRefService } from "./shared/ViewContainerRefService" ;
6
6
7
7
import { AppModule } from "./app.module" ;
8
- import { ModalDialogOptions , ModalDialogService , NSLocationStrategy } from "nativescript-angular" ;
8
+ import { ModalDialogOptions , ModalDialogService } from "nativescript-angular" ;
9
9
import { ModalViewComponent } from "./modal-shared/modal-view.component" ;
10
10
11
11
@Component ( {
Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ import { ModalSharedSecondComponent } from "./modal-shared/modal-shared-second.c
20
20
import { ViewContainerRefService } from "./shared/ViewContainerRefService" ;
21
21
22
22
import { enable as traceEnable , addCategories } from "tns-core-modules/trace" ;
23
- import { NativeScriptPlatformRef , routerTraceCategory } from "nativescript-angular" ;
23
+ import { routerTraceCategory } from "nativescript-angular/trace" ;
24
+ import { NativeScriptPlatformRef } from "nativescript-angular" ;
24
25
25
26
addCategories ( routerTraceCategory ) ;
26
27
traceEnable ( ) ;
Original file line number Diff line number Diff line change 1
1
import { Component , ViewContainerRef } from "@angular/core" ;
2
- import { ModalDialogService , RouterExtensions } from "nativescript-angular" ;
2
+ import { ModalDialogService , ModalDialogOptions } from "nativescript-angular/directives/dialogs" ;
3
+ import { RouterExtensions } from "nativescript-angular/router" ;
4
+ import { EventData } from "tns-core-modules/data/observable" ;
5
+
3
6
import { ViewContainerRefService } from "../shared/ViewContainerRefService" ;
7
+ import { ModalRouterComponent } from "../modal/modal-router/modal-router.component" ;
8
+ import { ModalComponent } from "../modal/modal.component" ;
9
+ import { ModalViewComponent } from "../modal-shared/modal-view.component" ;
10
+ import { confirm } from "tns-core-modules/ui/dialogs" ;
11
+
12
+ import { AppModule } from "../app.module" ;
4
13
5
14
@Component ( {
6
15
moduleId : module . id ,
Original file line number Diff line number Diff line change 1
1
import { Component , ViewContainerRef } from "@angular/core" ;
2
2
import { Router , NavigationEnd } from "@angular/router" ;
3
- import { NSLocationStrategy } from "nativescript-angular/router" ;
3
+ import { NSLocationStrategy } from "nativescript-angular/router/ns-location-strategy " ;
4
4
import { ModalDialogService , ModalDialogOptions } from "nativescript-angular/directives/dialogs" ;
5
5
import { ModalViewComponent } from "./modal-shared/modal-view.component" ;
6
6
import { ViewContainerRefService } from "./shared/ViewContainerRefService" ;
Original file line number Diff line number Diff line change 1
1
// this import should be first in order to load some required settings (like globals and reflect-metadata)
2
- import { platformNativeScript } from "nativescript-angular" ;
3
- console . log ( ">>>>>>>>main.aot.ts" ) ;
4
-
2
+ import { platformNativeScript } from "nativescript-angular/platform-static" ;
5
3
import { AppModule } from "./app.module" ;
6
4
import { NativeScriptPlatformRef } from "nativescript-angular" ;
7
5
// "./app.module.ngfactory" is a dynamically generated module when compiled with AoT.
Original file line number Diff line number Diff line change 1
1
// this import should be first in order to load some required settings (like globals and reflect-metadata)
2
- import { platformNativeScriptDynamic } from "nativescript-angular" ;
3
- console . log ( ">>>>>>>>main.ts" ) ;
2
+ import { platformNativeScriptDynamic } from "nativescript-angular/platform" ;
4
3
5
4
import { AppModule } from "./app.module" ;
6
5
import { NativeScriptPlatformRef } from "nativescript-angular" ;
Original file line number Diff line number Diff line change 1
1
import { Component , ViewContainerRef } from "@angular/core" ;
2
2
import { Router , NavigationEnd } from "@angular/router" ;
3
- import { NSLocationStrategy } from "nativescript-angular" ;
3
+ import { NSLocationStrategy } from "nativescript-angular/router/ns-location-strategy " ;
4
4
5
5
import { ViewContainerRefService } from "./shared/ViewContainerRefService" ;
6
6
import { AppModule } from "./app.module" ;
Original file line number Diff line number Diff line change 1
1
import { Component , ViewContainerRef } from "@angular/core" ;
2
2
import { Router , NavigationEnd } from "@angular/router" ;
3
- // import { NSLocationStrategy } from "nativescript-angular";
3
+ import { NSLocationStrategy } from "nativescript-angular/router/ns-location-strategy " ;
4
4
5
5
import { ViewContainerRefService } from "./shared/ViewContainerRefService" ;
6
6
import { AppModule } from "./app.module" ;
@@ -14,14 +14,14 @@ import { ModalViewComponent } from "./modal-shared/modal-view.component";
14
14
export class TabComponent {
15
15
constructor (
16
16
router : Router ,
17
- // location: NSLocationStrategy,
17
+ location : NSLocationStrategy ,
18
18
private _vcRef : ViewContainerRef ,
19
19
private _viewContainerRefService : ViewContainerRefService ,
20
20
private modal : ModalDialogService ) {
21
21
router . events . subscribe ( e => {
22
22
if ( e instanceof NavigationEnd ) {
23
23
console . log ( "[ROUTER]: " + e . toString ( ) ) ;
24
- // console.log(location.toString());
24
+ console . log ( location . toString ( ) ) ;
25
25
}
26
26
} ) ;
27
27
You can’t perform that action at this time.
0 commit comments