I am trying to follow the guide of Ember 2.0, only using routes, controllers with only attrs hash and components. With that, i am trying to accomplish a way to do the following:
3 Models, Player, Status, PlayerStatus ( Player M:N Status ) : I have the component to create a Player ( form , fields, button action that sends to route ). Similar to model Status, I have another component to create Status ( form , fields , button with action to parent route ).
Now i am stumbled as to do : use the components from Player and Status and create a PlayerStatus.
The problems come down to existing two buttons for each form ( is there a way to remove the buttons and trigger the action on a grant parent button ? ). What is the best way to reuse code, when i want to create a PlayerStatus from an existing Player ( in player page, do a set status ) , or a PlayerStatus from an existing Status ?