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 {
blockButton = true;
toggleBlock() {
this.blockButton = !this.blockButton;
}
}

View File

@@ -35,4 +35,8 @@
<button block round outline>button[block][round][outline]</button>
</p>
<p>
<button [block]="blockButton" (click)="toggleBlock()">Toggle Block</button>
</p>
</ion-content>