Coming from a Cocoa background, it feels natural to me to be able to have a reference to views and components in a controller.
Let’s say I have a component that has a method
someMethod. I want to be able to trigger this from outside of the component (let’s say from a button on the same page). Is it possible to store a reference to the component in the controller, so that I can call this method? Or is this a big Ember anti-pattern?
I could extend this question by asking whether it is possible to reference specific DOM elements from a view or component.
I think having such a possibility opens up a lot of flexibility. Right now the only way I see to achieve such things is to use property bindings or using jQuery to select DOM elements.