feat(buttons): dynamically add button attributes

Closes #5186
This commit is contained in:
Adam Bradley
2016-03-04 23:41:32 -06:00
parent 7b14a29ea7
commit 154a69c88a
8 changed files with 132 additions and 26 deletions

View File

@@ -4,4 +4,10 @@ import {App} from 'ionic-angular';
@App({
templateUrl: 'main.html'
})
class E2EApp {}
class E2EApp {
clearButton = true;
toggleClear() {
this.clearButton = !this.clearButton;
}
}

View File

@@ -35,4 +35,8 @@
<button clear dark class="activated">Dark.activated</button>
</p>
<p>
<button [clear]="clearButton" (click)="toggleClear()">Toggle Clear</button>
</p>
</ion-content>