chore(ng2-template): upgrade angular 2 template to rc1 version

This commit is contained in:
Andrei Tserakhau
2016-05-10 14:14:06 +03:00
committed by SteveSandersonMS
parent 8005427d94
commit 58a1aa3538
10 changed files with 53 additions and 27 deletions

View File

@@ -1,6 +1,6 @@
import * as ng from 'angular2/core';
import * as router from 'angular2/router';
import { Http, HTTP_BINDINGS } from 'angular2/http';
import * as ng from '@angular/core';
import * as router from '@angular/router-deprecated';
import { Http, HTTP_BINDINGS } from '@angular/http';
import { NavMenu } from '../nav-menu/nav-menu';
import { Home } from '../home/home';
import { FetchData } from '../fetch-data/fetch-data';

View File

@@ -1,4 +1,4 @@
import * as ng from 'angular2/core';
import * as ng from '@angular/core';
@ng.Component({
selector: 'counter',

View File

@@ -14,7 +14,7 @@
</tr>
</thead>
<tbody>
<tr *ngFor="#forecast of forecasts">
<tr *ngFor="let forecast of forecasts">
<td>{{ forecast.dateFormatted }}</td>
<td>{{ forecast.temperatureC }}</td>
<td>{{ forecast.temperatureF }}</td>

View File

@@ -1,5 +1,5 @@
import * as ng from 'angular2/core';
import { Http } from 'angular2/http';
import * as ng from '@angular/core';
import { Http } from '@angular/http';
@ng.Component({
selector: 'fetch-data',

View File

@@ -1,4 +1,4 @@
import * as ng from 'angular2/core';
import * as ng from '@angular/core';
@ng.Component({
selector: 'home',

View File

@@ -1,5 +1,5 @@
import * as ng from 'angular2/core';
import * as router from 'angular2/router';
import * as ng from '@angular/core';
import * as router from '@angular/router-deprecated';
@ng.Component({
selector: 'nav-menu',