I have a simple problem with my Ionic app.
So I have this code:
export class HomePage {
devices: string[];
stuff: string;
constructor(public navCtrl: NavController) { };
ionViewWillEnter() {
this.devices.push('Roletor3000');
this.stuff = 'test';
}
}
And for some reason I get an error that this.devices does not exist. But this.stuff works just fine. What am I doing wrong here?