Hi
I'm currently working on an application comprised of portlet like components
implemented as directives. One of the design goals of the project is be able
to reuse these portlets across applications which means they must be decoupled
from each other, yet still allow for communication between them. At the moment
the current implementation is using the directive's isolated scope to expose an
API by means of 2-way databinding ('=') and callback expressions ('&'). A
controller then acts as the delegate between the 2 portlets by making the data
and expressions available on the portlets' parent scope.
My understanding of the $rootScope's $broadcast method is to signal global
changes in app state. I'm wondering if it's a good idea to use it in the
scenario's I've described above.
What are the advantages and drawbacks to either approach?
Thanks
Raul
--
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.