@Ben_Glancy wrote:
I have noticed that if I have the following:
export default Ember.Component.extend({
actions: {
clickButton() {
this.transitionToRoute('user.roomviewer');
}
}
});The clickButton action has no access to the transitionToRoute function because it can't see the component. It only sees "this" as what is declared in the contents of this file or what is implicitly added in other ways.
Why can't actions allowed to see the component? I've never understood this!
Posts: 3
Participants: 2