How would you implement concerns in ember. For instance, send invite functionality:
- user have 5 invites (store involved from fetching data)
- invite available from any application state
- it appears in modal
- it can be more than one more - thus {{outlet modal}} doesnt work as well
- user can enter email and send invite (available invites number decreased)
current modal implementation - thus cannot assign controller to a view...
openModal: function(modal) {
var modalView = this.container.lookup(modal);
modalView.appendTo(MS.rootElement);
}
Component approach doesnt work as for me: content (model) should be setuped by routed, i dont know event in component which can be useful for data fetching.
Nested routes doesnt work as well - to much to change.
I cant find any working approach for this, please help.
Thanks in advance.