Hi, 
I have been questioning myself with the following pattern:
- Directive A listens to changes on service A (it holds a promise)
- Directive B changes the data in Service A and fires a notify on the promise.
- Directive A gets the notification and calls a function with the new data.

I find this puzzling as it seems rather anti pattern but I have seen this 
pattern used several times. How would one reuse its directive? As there is no 
dependency on scope but solely on the service data?

-- 
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