File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 43
43
< p > Touched: {{ pokemonControl.touched }} </ p >
44
44
< p > Dirty: {{ pokemonControl.dirty }} </ p >
45
45
< 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 >
47
47
< button md-button (click) ="pokemonRequired=!pokemonRequired "> TOGGLE REQUIRED</ button >
48
48
< button md-button (click) ="pokemonDisabled=!pokemonDisabled "> TOGGLE DISABLED</ button >
49
49
< 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 {
51
51
toggleDisabled ( ) {
52
52
this . foodControl . enabled ? this . foodControl . disable ( ) : this . foodControl . enable ( ) ;
53
53
}
54
+
55
+ setPokemonValue ( ) {
56
+ this . currentPokemon = [ 'eevee-4' , 'psyduck-6' ] ;
57
+ }
54
58
}
You can’t perform that action at this time.
0 commit comments