mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(angular): update to angular 2.0.0-rc.1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {Directive, ElementRef, Renderer, Attribute, NgZone} from 'angular2/core';
|
||||
import {Directive, ElementRef, Renderer, Attribute, NgZone} from '@angular/core';
|
||||
|
||||
import {Ion} from '../ion';
|
||||
import {ItemSlidingGesture} from '../item/item-sliding-gesture';
|
||||
@@ -53,7 +53,7 @@ export class List extends Ion {
|
||||
*
|
||||
* ```ts
|
||||
* import {Page, List} from 'ionic-angular';
|
||||
* import {ViewChild} from 'angular2/core';
|
||||
* import {ViewChild} from '@angular/core';
|
||||
* @Page...
|
||||
* export class MyClass {
|
||||
* @ViewChild(List) list: List;
|
||||
@@ -88,7 +88,7 @@ export class List extends Ion {
|
||||
*
|
||||
* ```ts
|
||||
* import {Page, List} from 'ionic-angular';
|
||||
* import {ViewChild} from 'angular2/core';
|
||||
* import {ViewChild} from '@angular/core';
|
||||
* @Page...
|
||||
* export class MyClass {
|
||||
* @ViewChild(List) list: List;
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
<ion-content class="outer-content">
|
||||
|
||||
<ion-list class="outer-content" *ngFor="#person of people">
|
||||
<ion-list class="outer-content" *ngFor="let person of people">
|
||||
<ion-list-header>
|
||||
{{person.name}}
|
||||
</ion-list-header>
|
||||
<ion-item *ngFor="#component of person.components">
|
||||
<ion-item *ngFor="let component of person.components">
|
||||
{{component}}
|
||||
<div item-right>
|
||||
<ion-icon name="pin"></ion-icon>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<ion-content>
|
||||
<ion-list>
|
||||
<ion-item-group *ngFor="#group of groups">
|
||||
<ion-item-group *ngFor="let group of groups">
|
||||
<ion-item-divider sticky>{{group.title}}</ion-item-divider>
|
||||
<ion-item *ngFor="#item of group.items">
|
||||
<ion-item *ngFor="let item of group.items">
|
||||
{{item.title}}
|
||||
</ion-item>
|
||||
</ion-item-group>
|
||||
|
||||
Reference in New Issue
Block a user