@Component({
selector: 'time-table',
controllerAs: 'TimeTableCtrl',
properties: [
'@minHour',
'@maxHour',
'=myEvents'
]
})
@View({template: require('./timetable.html')})
@Inject('$log')
export class TimeTableComponent {
How can I access the myEvents in the TimeTableComponent? I cannot seem to reference them inside the component itself. Using '{{TimeTableCtrl.myEvents}}' in HTML works!