Get of array is undefined


#1
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.


#2

I modified my code from typescript to javascript (Ember.Component.extend({..})) and things started working. I wonder whats the issue with above typescript code. Any help would be appreciated.