Hi Rishi,

Thank you for responding. 

By using parent scope, certainly we can achieve it but parent scope will 
require a watcher which can execute respective code in individual 
directives.
 
And as per my understanding broadcast an event would also do the same, can 
we achieve the same using require which will invoke parent directive 
controller into child directive link function as a fourth parameter. And 
after that if we could invoke actual click event from there.




On Thursday, March 12, 2015 at 2:20:44 AM UTC+5:30, Rishi Tandon wrote:
>
> each input clear can be handled in its own respective clear directive
> - Use Isolated scope if you don;t want to inherit the PARENT scope
>
> On Wed, Mar 11, 2015 at 1:26 PM, Anurag Sharma <[email protected] 
> <javascript:>> wrote:
>
>> Hello everyone,
>>
>> I am currently implementing directive chain for clearing out child 
>> element values when user modifies the parent element value.
>>
>> I have a single directive which handles it completely within itself, but 
>> to use AngularJS declarative feature I would like to manage this whole 
>> functionality within multiple directives such that each input clear can be 
>> handled in its own respective clear directive.
>>
>> I tried implementing event broadcast and pub / sub implementation, Is 
>> there any optimal solution for the same?
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> *Rishi Tandon*
> Pearson Learning Technology Group
>
> Mobile: (310) 926-9032
>
> Pearson
> Always Learning
> Learn more at www.pearson.com
>  

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