test(item): add activated class to one of the items

references #5350
This commit is contained in:
Brandy Carney
2016-02-17 14:42:40 -05:00
parent 90f165f838
commit 2d157cbc3f
2 changed files with 4 additions and 4 deletions

View File

@ -30,8 +30,8 @@
padding: 0;
border: 0;
overflow: hidden;
min-height:inherit;
min-height: inherit;
flex: 1;
flex-direction: inherit;
align-items: inherit;

View File

@ -88,8 +88,8 @@
<button outline item-right (click)="testClick($event)">View</button>
</ion-item>
<button ion-item *ngFor="#data of [0,1,2,3,4]">
<h3>ng-for {{data}}</h3>
<button ion-item *ngFor="#data of [0,1,2,3,4]; #i = index" [class.activated]="i == 1">
<h3>ng-for {{i}}</h3>
</button>
</ion-content>