update angular to 13.1.0
This commit is contained in:
@@ -17,7 +17,7 @@ export class ImageToggleComponent implements OnInit {
|
||||
|
||||
text = undefined;
|
||||
|
||||
_states : Array<any>;
|
||||
_states : Array<any> = [];
|
||||
|
||||
constructor() { }
|
||||
|
||||
@@ -34,7 +34,7 @@ export class ImageToggleComponent implements OnInit {
|
||||
return this._states[this.index].title;
|
||||
}
|
||||
|
||||
toggle(event){
|
||||
toggle(event: any){
|
||||
this.index = (this.index+1) % this._states.length;
|
||||
this.text = this._states[this.index].text;
|
||||
this.valueChanged.emit(this._states[this.index].value);
|
||||
|
||||
Reference in New Issue
Block a user