Hi everybody

I have got a general design question, I cannot wrap my head around. 

It's about a panel manager (managing panels in a container). I want to be 
able to add / remove panels from anywhere in the web application and 
automatically re-render the collection in a directive. I'm using a 
directive to render the panels (instead of ng-repeat in conjunction with a 
controller), because when generating the panels I need to make CSSOM/DOM 
manipulations on the panels.

In an ideal world I would like:

   - Accessing the Panel API for adding / deleting panels from anywhere in 
   the app (perhaps using a service?)
   - A directive for rendering the panels stored in the Panel API (with 
   having access to the actual DOM element of the panel while creating)
   - The directive can send updates to the Panel API (say the panel was 
   closed, hence can be deleted)

Given that I want to nicely separate concerns, what would be an elegant way 
to implement this? Any pointers are appreciated! 

Best, 
Ben


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to