I have a view which is setup by a route plus an associated controller.
I can trace that the controller is created but in the init()
function of the
view, when I do this:
init: function() {
this._super();
console.log(this.get('controller'));
}
The controller is null
.
If I check in didInsertElement()
, the controller is set.
I think it would be useful to have the controller in the init()
function already.
Why is this not the case?