File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 4343 < p > Touched: {{ pokemonControl.touched }} </ p >
4444 < p > Dirty: {{ pokemonControl.dirty }} </ p >
4545 < p > Status: {{ pokemonControl.control?.status }} </ p >
46- < button md-button (click) ="currentPokemon=['eevee-4', 'psyduck-6'] "> SET VALUE</ button >
46+ < button md-button (click) ="setPokemonValue() "> SET VALUE</ button >
4747 < button md-button (click) ="pokemonRequired=!pokemonRequired "> TOGGLE REQUIRED</ button >
4848 < button md-button (click) ="pokemonDisabled=!pokemonDisabled "> TOGGLE DISABLED</ button >
4949 < button md-button (click) ="pokemonControl.reset() "> RESET</ button >
Original file line number Diff line number Diff line change @@ -51,4 +51,8 @@ export class SelectDemo {
5151 toggleDisabled ( ) {
5252 this . foodControl . enabled ? this . foodControl . disable ( ) : this . foodControl . enable ( ) ;
5353 }
54+
55+ setPokemonValue ( ) {
56+ this . currentPokemon = [ 'eevee-4' , 'psyduck-6' ] ;
57+ }
5458}
You can’t perform that action at this time.
0 commit comments