test(): dynamically update icon test

This commit is contained in:
Adam Bradley
2016-01-06 14:25:58 -06:00
parent ee8923f712
commit 9f9e28c36c
2 changed files with 12 additions and 0 deletions

View File

@@ -8,5 +8,10 @@ class E2EApp {
constructor() {
this.homeIcon = 'home';
this.isActive = false;
this.btnIcon = 'home';
}
updateIcon() {
this.btnIcon = (this.btnIcon === 'home' ? 'star' : 'home');
}
}

View File

@@ -64,6 +64,13 @@
</ion-list>
<p>
<button (click)="updateIcon()">
<ion-icon [name]="btnIcon"></ion-icon>
Update icon
</button>
</p>
</ion-content>
<style>