I am new to Ember
and I am not sure how to do things the Ember way so I turn to you.
My problem:
I have a sidebar, I created a View
for it. I have two buttons on the sidebar for the moment. I added an action
for each button on it. I am not sure if I should handle it on controller or on view. I want on clicking one of these button, a new view to be inserted that would open a pop up menu and also the button that called the action to remain in a selected state.
I am not very sure how to do this. I tried to target the view with the action but I can't have access to the target element or at least I don't know how to access it (tried this.$()
).
What way do you suggest to follow?