export class MySelectComponent extends Ember.Component {
content: Array<any> = [
{
"label": "Name (a-z)",
"value": "name:asc"
},
{
"label": "Name (z-a)",
"value": "name:desc"
}
];
label: string = "Select";
didInsertElement (): void {
console.log(this.get("content"));
}
actions: any = {
select (value: any): void {
this.sendAction("action", value);
}
};
}
}
What am I doing wrong here. get("label")
returns proper value but get("content")
is undefined.