Skip to content

Commit c131f10

Browse files
Update test app to @andgular-2.0.0.rc.5
1 parent 25d3454 commit c131f10

File tree

3 files changed

+52
-40
lines changed

3 files changed

+52
-40
lines changed

app/main.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
// this import should be first in order to load some required settings (like globals and reflect-metadata)
2-
import {nativeScriptBootstrap} from "nativescript-angular/application";
3-
import {NavigationMainPageRouter, MainRouterProviders} from "./main/main-page-router-outlet"
2+
import { platformNativeScriptDynamic, NativeScriptModule } from "nativescript-angular/platform";
3+
import { NgModule } from "@angular/core";
4+
import { NavigationMainPageRouter, routes} from "./main/main-page-router-outlet";
5+
import { NativeScriptRouterModule } from "nativescript-angular/router";
46

5-
// main-page-router-outlet
6-
nativeScriptBootstrap(NavigationMainPageRouter, [MainRouterProviders]);
7+
@NgModule({
8+
declarations: [NavigationMainPageRouter],
9+
bootstrap: [NavigationMainPageRouter],
10+
imports: [
11+
NativeScriptModule,
12+
NativeScriptRouterModule,
13+
NativeScriptRouterModule.forRoot(routes),
14+
],
15+
})
16+
class AppComponentModule { }
17+
18+
platformNativeScriptDynamic().bootstrapModule(AppComponentModule);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class MainComponent { }
6969
export class NavigationMainPageRouter { }
7070

7171

72-
const routes: RouterConfig = [
72+
export const routes: RouterConfig = [
7373
{ path: '', component: MainComponent },
7474
{ path: 'template', component: AppComponent },
7575
{ path: 'router', component: NavigationTestRouter, children: NavigationSubRoutes },

package.json

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
{
2-
"description": "NativeScript Application",
3-
"license": "SEE LICENSE IN <your-license-filename>",
4-
"readme": "NativeScript Application",
5-
"repository": "<fill-your-repository-here>",
6-
"nativescript": {
7-
"id": "org.nativescript.testsappng",
8-
"tns-ios": {
9-
"version": "2.1.1"
10-
},
11-
"tns-android": {
12-
"version": "2.1.1"
13-
}
14-
},
15-
"dependencies": {
16-
"@angular/common": "2.0.0-rc.3",
17-
"@angular/compiler": "2.0.0-rc.3",
18-
"@angular/core": "2.0.0-rc.3",
19-
"@angular/platform-browser": "2.0.0-rc.3",
20-
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
21-
"@angular/platform-server": "2.0.0-rc.3",
22-
"@angular/router-deprecated": "2.0.0-rc.2",
23-
"@angular/router": "3.0.0-alpha.7",
24-
"nativescript-angular": "next",
25-
"tns-core-modules": "next"
26-
},
27-
"devDependencies": {
28-
"babel-traverse": "6.8.0",
29-
"babel-types": "6.8.1",
30-
"babylon": "6.8.0",
31-
"filewalker": "0.1.2",
32-
"lazy": "1.0.11",
33-
"nativescript-dev-typescript": "^0.3.2",
34-
"typescript": "^1.8.10"
35-
}
36-
}
2+
"description": "NativeScript Application",
3+
"license": "SEE LICENSE IN <your-license-filename>",
4+
"readme": "NativeScript Application",
5+
"repository": "<fill-your-repository-here>",
6+
"nativescript": {
7+
"id": "org.nativescript.testsappng",
8+
"tns-ios": {
9+
"version": "2.1.1"
10+
},
11+
"tns-android": {
12+
"version": "2.1.1"
13+
}
14+
},
15+
"dependencies": {
16+
"@angular/common": "2.0.0-rc.5",
17+
"@angular/compiler": "2.0.0-rc.5",
18+
"@angular/core": "2.0.0-rc.5",
19+
"@angular/platform-browser": "2.0.0-rc.5",
20+
"@angular/platform-browser-dynamic": "2.0.0-rc.5",
21+
"@angular/platform-server": "2.0.0-rc.5",
22+
"@angular/router": "3.0.0-rc.1",
23+
"@angular/forms": "0.3.0",
24+
"nativescript-angular": "0.4.0",
25+
"tns-core-modules": "2.2.1"
26+
},
27+
"devDependencies": {
28+
"babel-traverse": "6.8.0",
29+
"babel-types": "6.8.1",
30+
"babylon": "6.8.0",
31+
"filewalker": "0.1.2",
32+
"lazy": "1.0.11",
33+
"nativescript-dev-typescript": "^0.3.2",
34+
"typescript": "^1.8.10"
35+
}
36+
}

0 commit comments

Comments
 (0)