Skip to content

Commit 1a5dcb1

Browse files
Update tests-app-ng to use new nativescript-angular/router-dapricated
1 parent 8c1242c commit 1a5dcb1

11 files changed

+14
-14
lines changed

app/action-bar/action-bar-first.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component} from '@angular/core';
2-
import {NS_ROUTER_DIRECTIVES} from "nativescript-angular/router/ns-router";
2+
import {NS_ROUTER_DIRECTIVES} from "nativescript-angular/router-deprecated/ns-router-deprecated";
33

44
@Component({
55
selector: "first-action-bar",

app/action-bar/action-bar-nested.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component} from '@angular/core';
2-
import {NS_ROUTER_DIRECTIVES} from "nativescript-angular/router/ns-router";
2+
import {NS_ROUTER_DIRECTIVES} from "nativescript-angular/router-deprecated/ns-router-deprecated";
33

44
@Component({
55
selector: "nested-component",

app/action-bar/action-bar-second.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Component} from '@angular/core';
22
import {NestedComponent} from "./action-bar-nested.component";
3-
import {NS_ROUTER_DIRECTIVES} from "nativescript-angular/router/ns-router";
3+
import {NS_ROUTER_DIRECTIVES} from "nativescript-angular/router-deprecated/ns-router-deprecated";
44

55
@Component({
66
selector: "second-action-bar",

app/components/first.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component} from "@angular/core";
2-
import {NS_ROUTER_DIRECTIVES} from "nativescript-angular/router/ns-router";
2+
import {NS_ROUTER_DIRECTIVES} from "nativescript-angular/router-deprecated/ns-router-deprecated";
33

44
@Component({
55
selector: "first",

app/components/second.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component} from "@angular/core";
2-
import {NS_ROUTER_DIRECTIVES} from "nativescript-angular/router/ns-router";
2+
import {NS_ROUTER_DIRECTIVES} from "nativescript-angular/router-deprecated/ns-router-deprecated";
33

44
@Component({
55
selector: "second",

app/listView/listViewMainPage/list-view-main-page.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component } from "@angular/core";
2-
import { NS_ROUTER_DIRECTIVES } from "nativescript-angular/router";
2+
import { NS_ROUTER_DIRECTIVES } from "nativescript-angular/router-deprecated";
33

44
@Component({
55
selector: "main",

app/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// this import should be first in order to load some required settings (like globals and reflect-metadata)
22
import {nativeScriptBootstrap} from "nativescript-angular/application";
3-
import {NS_ROUTER_PROVIDERS} from "nativescript-angular/router";
3+
import {NS_ROUTER_PROVIDERS} from "nativescript-angular/router-deprecated";
44
import {ActionBarTest} from "./action-bar/action-bar-test"
55
import {AppComponent} from "./template/app.component";
66
import {NavigationTestRouter} from "./router/router-outlet"

app/main/main-page-router-outlet.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component } from "@angular/core";
22
import { RouteConfig } from '@angular/router-deprecated';
3-
import { NS_ROUTER_DIRECTIVES } from "nativescript-angular/router";
3+
import { NS_ROUTER_DIRECTIVES } from "nativescript-angular/router-deprecated";
44
import { ActionBarTest } from "../action-bar/action-bar-test";
55
import { FirstComponentActionBar } from "../action-bar/action-bar-first.component";
66
import { SecondComponentActionBar } from "../action-bar/action-bar-second.component";
@@ -38,7 +38,7 @@ import { ModalTest, ModalTestWithPushStrategy } from "../modal/modal-dialog.comp
3838
<Button text="ListViewExamples" [nsRouterLink]="['ListViewMainPage']"></Button>
3939
<StackLayout orientation="horizontal" horizontalAlignment="center">
4040
<Button text="modal" [nsRouterLink]="['Modal']"></Button>
41-
<Button text="modal(onPush)" [nsRouterLink]="['ModalWithPushStrategy']"></Button>
41+
<Button text="modal(onPush)" [nsRouterLink]="['ModalWithPushStrategy']"></Button>
4242
</StackLayout>
4343
</StackLayout>
4444
`,

app/router/page-router-outlet.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Component} from "@angular/core";
22
import {RouteConfig} from '@angular/router-deprecated';
3-
import {NS_ROUTER_DIRECTIVES} from "nativescript-angular/router";
3+
import {NS_ROUTER_DIRECTIVES} from "nativescript-angular/router-deprecated";
44
import {FirstComponent} from "../components/first.component";
55
import {SecondComponent} from "../components/second.component";
66

app/router/router-outlet.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Component} from "@angular/core";
22
import {RouteConfig, ROUTER_DIRECTIVES} from '@angular/router-deprecated';
3-
import {NS_ROUTER_DIRECTIVES} from "nativescript-angular/router";
3+
import {NS_ROUTER_DIRECTIVES} from "nativescript-angular/router-deprecated";
44
import {FirstComponent} from "../components/first.component";
55
import {SecondComponent} from "../components/second.component";
66

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"nativescript": {
77
"id": "org.nativescript.testsappng",
88
"tns-ios": {
9-
"version": "2.0.1"
9+
"version": "2.1.0"
1010
},
1111
"tns-android": {
12-
"version": "2.0.0"
12+
"version": "2.1.0"
1313
}
1414
},
1515
"dependencies": {
@@ -32,4 +32,4 @@
3232
"nativescript-dev-typescript": "^0.3.2",
3333
"typescript": "^1.8.10"
3434
}
35-
}
35+
}

0 commit comments

Comments
 (0)