Skip to content

Commit

Permalink
fix: remove array literal from template
Browse files Browse the repository at this point in the history
  • Loading branch information
crisbeto committed Mar 1, 2017
1 parent b7badb1 commit 9657e48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/demo-app/select/select-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<p> Touched: {{ pokemonControl.touched }} </p>
<p> Dirty: {{ pokemonControl.dirty }} </p>
<p> Status: {{ pokemonControl.control?.status }} </p>
<button md-button (click)="currentPokemon=['eevee-4', 'psyduck-6']">SET VALUE</button>
<button md-button (click)="setPokemonValue()">SET VALUE</button>
<button md-button (click)="pokemonRequired=!pokemonRequired">TOGGLE REQUIRED</button>
<button md-button (click)="pokemonDisabled=!pokemonDisabled">TOGGLE DISABLED</button>
<button md-button (click)="pokemonControl.reset()">RESET</button>
Expand Down
4 changes: 4 additions & 0 deletions src/demo-app/select/select-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,8 @@ export class SelectDemo {
toggleDisabled() {
this.foodControl.enabled ? this.foodControl.disable() : this.foodControl.enable();
}

setPokemonValue() {
this.currentPokemon = ['eevee-4', 'psyduck-6'];
}
}

0 comments on commit 9657e48

Please sign in to comment.