Skip to content

Commit 72efd85

Browse files
committed
Merge pull request #216 from NativeScript/hdeshev/angular-rc1
Upgrade to ng rc1
2 parents 48654ed + 30a3043 commit 72efd85

25 files changed

+310
-279
lines changed

ng-sample/app/app.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ import {ModalTest} from "./examples/modal/modal-test";
2727
import {PlatfromDirectivesTest} from "./examples/platform-directives/platform-directives-test";
2828
import {RouterOutletTest} from "./examples/navigation/router-outlet-test";
2929

30-
nativeScriptBootstrap(RendererTest).then((compRef) => {
31-
console.log("nativeScriptBootstrap resloved: " + compRef);
32-
}).catch((e) => {
33-
console.log("nativeScriptBootstrap error: " + e);
34-
});
30+
nativeScriptBootstrap(RendererTest);
3531
//nativeScriptBootstrap(Benchmark);
3632
//nativeScriptBootstrap(ListTest);
3733
//nativeScriptBootstrap(ListTestAsync);

ng-sample/app/examples/action-bar/action-bar-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component} from '@angular/core';
2-
import {RouteConfig} from '@angular/router';
2+
import {RouteConfig} from '@angular/router-deprecated';
33
import { Page} from "ui/page";
44
import {NS_ROUTER_DIRECTIVES, NS_ROUTER_PROVIDERS} from "../../nativescript-angular/router/ns-router";
55
import {NS_DIRECTIVES} from "../../nativescript-angular/directives";

ng-sample/app/examples/list/list-test-async.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class DataItem {
1111
template: `
1212
<GridLayout>
1313
<ListView [items]="myItems | async" (itemTap)="onItemTap($event)">
14-
<template #item="item" #i="index" #odd="odd" #even="even">
14+
<template let-item="item" let-i="index" let-odd="odd" let-even="even">
1515
<StackLayout [class.odd]="odd" [class.even]="even">
1616
<Label class="test" [text]='"index: " + item.name'></Label>
1717
</StackLayout>

ng-sample/app/examples/list/list-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class DataItem {
3030
<Label row="0" text="-==START==-" fontSize="20"></Label>
3131
<GridLayout row="1">
3232
<ListView [items]="myItems" (itemTap)="onItemTap($event)">
33-
<template #item="item" #i="index" #odd="odd" #even="even">
33+
<template let-item="item" let-i="index" let-odd="odd" let-even="even">
3434
<StackLayout [class.odd]="odd" [class.even]="even">
3535
<Label [text]='"index: " + i'></Label>
3636
<Label [text]='"[" + item.id +"] " + item.name'></Label>

ng-sample/app/examples/navigation/nav-component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Component} from '@angular/core';
22
import {ROUTER_DIRECTIVES, Router, OnActivate, OnDeactivate, CanReuse, OnReuse,
3-
RouteParams, ComponentInstruction, RouteConfig } from '@angular/router';
3+
RouteParams, ComponentInstruction, RouteConfig } from '@angular/router-deprecated';
44
import {Location, LocationStrategy} from '@angular/common';
55
import {topmost} from "ui/frame";
66
import {Page} from "ui/page";

ng-sample/app/examples/navigation/navigation-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component} from '@angular/core';
2-
import {RouteConfig, ROUTER_PROVIDERS, ROUTER_DIRECTIVES, ComponentInstruction} from '@angular/router';
2+
import {RouteConfig, ROUTER_PROVIDERS, ROUTER_DIRECTIVES, ComponentInstruction} from '@angular/router-deprecated';
33

44
import {NavComponent} from "./nav-component";
55
import {NS_ROUTER_DIRECTIVES, NS_ROUTER_PROVIDERS} from "../../nativescript-angular/router/ns-router";

ng-sample/app/examples/navigation/router-outlet-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component} from '@angular/core';
2-
import {RouteConfig, ROUTER_PROVIDERS, ROUTER_DIRECTIVES, ComponentInstruction, RouteParams} from '@angular/router';
2+
import {RouteConfig, ROUTER_PROVIDERS, ROUTER_DIRECTIVES, ComponentInstruction, RouteParams} from '@angular/router-deprecated';
33
import {NS_ROUTER_DIRECTIVES, NS_ROUTER_PROVIDERS} from "../../nativescript-angular/router/ns-router";
44

55
@Component({

ng-sample/app/examples/renderer-test.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
<TextView *ngIf='showDetails' [text]='detailsText'></TextView>
2525
<Label text='==============================' fontSize='20'></Label>
2626
<StackLayout #more *ngIf='showDetails' orientation='vertical'>
27-
<TextField *ngFor='#detailLine of detailLines' [text]='detailLine'></TextField>
27+
<TextField *ngFor='let detailLine of detailLines' [text]='detailLine'></TextField>
2828
</StackLayout>
2929
<Label text='==============================' fontSize='20'></Label>
3030
<templated-component [renderChild]="true"></templated-component>
31-
</StackLayout>
31+
</StackLayout>

ng-sample/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,25 @@
2525
"dependencies": {
2626
"tns-core-modules": "^2.0.0",
2727
"nativescript-intl": "^0.0.2",
28-
"@angular/common": "0.0.0-0",
29-
"@angular/compiler": "0.0.0-0",
30-
"@angular/core": "0.0.0-0",
31-
"@angular/router": "0.0.0-0",
32-
"@angular/platform-browser": "0.0.0-0",
33-
"@angular/platform-browser-dynamic": "0.0.0-0",
34-
"@angular/platform-server": "0.0.0-0",
28+
"@angular/common": "2.0.0-rc.1",
29+
"@angular/compiler": "2.0.0-rc.1",
30+
"@angular/core": "2.0.0-rc.1",
31+
"@angular/router-deprecated": "2.0.0-rc.1",
32+
"@angular/platform-browser": "2.0.0-rc.1",
33+
"@angular/platform-browser-dynamic": "2.0.0-rc.1",
34+
"@angular/platform-server": "2.0.0-rc.1",
3535
"reflect-metadata": "^0.1.3",
36-
"rxjs": "5.0.0-beta.2",
36+
"rxjs": "5.0.0-beta.6",
3737
"zone.js": "^0.6.12",
3838
"parse5": "1.4.2",
3939
"punycode": "1.3.2",
4040
"querystring": "0.2.0",
4141
"url": "0.10.3"
4242
},
4343
"devDependencies": {
44-
"babel-traverse": "6.7.6",
45-
"babel-types": "6.7.7",
46-
"babylon": "6.7.0",
44+
"babel-traverse": "6.8.0",
45+
"babel-types": "6.8.1",
46+
"babylon": "6.8.0",
4747
"filewalker": "0.1.2",
4848
"grunt": "0.4.5",
4949
"grunt-contrib-clean": "0.6.0",

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-angular",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "",
55
"homepage": "http://www.telerik.com",
66
"bugs": "http://www.telerik.com",
@@ -16,15 +16,15 @@
1616
"dependencies": {
1717
"tns-core-modules": "^2.0.0",
1818
"nativescript-intl": "^0.0.2",
19-
"@angular/common": "0.0.0-0",
20-
"@angular/compiler": "0.0.0-0",
21-
"@angular/core": "0.0.0-0",
22-
"@angular/router": "0.0.0-0",
23-
"@angular/platform-browser": "0.0.0-0",
24-
"@angular/platform-browser-dynamic": "0.0.0-0",
25-
"@angular/platform-server": "0.0.0-0",
19+
"@angular/common": "2.0.0-rc.1",
20+
"@angular/compiler": "2.0.0-rc.1",
21+
"@angular/core": "2.0.0-rc.1",
22+
"@angular/router-deprecated": "2.0.0-rc.1",
23+
"@angular/platform-browser": "2.0.0-rc.1",
24+
"@angular/platform-browser-dynamic": "2.0.0-rc.1",
25+
"@angular/platform-server": "2.0.0-rc.1",
2626
"reflect-metadata": "^0.1.3",
27-
"rxjs": "5.0.0-beta.2",
27+
"rxjs": "5.0.0-beta.6",
2828
"zone.js": "^0.6.12",
2929
"parse5": "1.4.2",
3030
"punycode": "1.3.2",
@@ -40,7 +40,7 @@
4040
"grunt-env": "0.4.4",
4141
"grunt-ts": "5.0.0-beta.5",
4242
"shelljs": "^0.5.3",
43-
"typescript": "1.8.2"
43+
"typescript": "^1.8.10"
4444
},
4545
"peerDependencies": {
4646
"tns-core-modules": ">=2.0.0 || >=2.0.0-2016 || >=2.0.0-angular-4"

0 commit comments

Comments
 (0)