0
Wie initiere ich ein leeres Array?angular2 und Typescript array - Property 'push' existiert nicht beim Typ '() => void'
test: any[];
//On change I want to add an item to an array
test(){
this.test.push('a');
}
Fehler TS2339: Eigenschaft 'push' existiert nicht auf Typ '() => void'.
Hat nicht für mich gelöst –