mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
chore(angular): update to angular 2.0.0-rc.1
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import {Directive, Component, ElementRef, Renderer, Host, EventEmitter, Input, Output, ChangeDetectionStrategy, ViewEncapsulation} from 'angular2/core';
|
||||
import {NgClass} from 'angular2/common';
|
||||
import {Directive, Component, ElementRef, Renderer, Host, EventEmitter, Input, Output, ChangeDetectionStrategy, ViewEncapsulation} from '@angular/core';
|
||||
import {NgClass} from '@angular/common';
|
||||
|
||||
import {Ion} from '../ion';
|
||||
import {Animation} from '../../animations/animation';
|
||||
@ -121,7 +121,7 @@ import {Scroll} from '../scroll/scroll';
|
||||
* Next, we can use `ViewChild` to assign the Slides instance to `slider`:
|
||||
*
|
||||
* ```ts
|
||||
* import {ViewChild} from 'angular2/core';
|
||||
* import {ViewChild} from '@angular/core';
|
||||
*
|
||||
* class MyPage {
|
||||
* @ViewChild('mySlider') slider: Slides;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {ViewChild} from 'angular2/core';
|
||||
import {Http} from 'angular2/http';
|
||||
import {ViewChild} from '@angular/core';
|
||||
import {Http} from '@angular/http';
|
||||
import {App, Slides} from '../../../../../ionic';
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<ion-slides [options]="mySlideOptions" id="slider" style="background-color: black">
|
||||
<ion-slide *ngFor="#image of images">
|
||||
<ion-slide *ngFor="let image of images">
|
||||
<img data-src="{{getImageUrl(image)}}" slide-lazy>
|
||||
</ion-slide>
|
||||
</ion-slides>
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {ViewChild} from 'angular2/core';
|
||||
import {ViewChild} from '@angular/core';
|
||||
import {App, Page, Slides} from '../../../../../ionic';
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {ViewChild} from 'angular2/core';
|
||||
import {ViewChild} from '@angular/core';
|
||||
import {App, Slides} from '../../../../../ionic';
|
||||
|
||||
@App({
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="slides-div">
|
||||
<ion-slides [options]="myTopSlideOptions" #loopSlider (didChange)="onSlideChanged($event)" pager>
|
||||
<ion-slide *ngFor="#slide of slides" [ngClass]="slide.class">
|
||||
<ion-slide *ngFor="let slide of slides" [ngClass]="slide.class">
|
||||
Loop {{ slide.name }}
|
||||
</ion-slide>
|
||||
</ion-slides>
|
||||
@ -9,7 +9,7 @@
|
||||
|
||||
<div class="slides-div">
|
||||
<ion-slides (didChange)="onSlideChanged($event)" pager>
|
||||
<ion-slide *ngFor="#slide of slides" [ngClass]="slide.class">
|
||||
<ion-slide *ngFor="let slide of slides" [ngClass]="slide.class">
|
||||
Don't Loop {{ slide.name }}
|
||||
</ion-slide>
|
||||
</ion-slides>
|
||||
|
@ -12,7 +12,7 @@
|
||||
</ion-slides>
|
||||
</div>
|
||||
<ion-list>
|
||||
<button ion-item *ngFor="#item of [0,1,2,3,4,5,6,7,8]">
|
||||
<button ion-item *ngFor="let item of [0,1,2,3,4,5,6,7,8]">
|
||||
{{ item }}
|
||||
</button>
|
||||
</ion-list>
|
||||
|
Reference in New Issue
Block a user