Angular starts at the root node of the application (where ng-app is) and 
goes down the tree node-by-node. For each node it encounters it tries to 
determine all the directives that are on that node. If it finds multiple 
directives on one node it will order them by greatest to least priority 
(you can define priority on your directive). It then will iterate over the 
children of the node and repeat the process.


On Thursday, January 2, 2014 2:01:05 PM UTC-8, Ian Zhang wrote:
>
> Hi Everyone
>
> I have defined some custom directives.   Is there a definite sequence when 
> they run?   Which one will run first?   Can I define the running sequence?
>
> Thanks,
>
> Ian
>
>
>
>

-- 
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/groups/opt_out.

Reply via email to