How to manage order of custom directives with separate directive controllers

Multi tool use
Multi tool use


How to manage order of custom directives with separate directive controllers



In my html page I have call multiple directives. My directives has their controllers in separate files. My issue is all directive's init functions are not called in order.


<div>
<directive-a ng-if="a==true"></directive-a>
<directive-b ng-if="b==true"></directive-b>
<directive-c ng-if="c==true"></directive-c>
<div>



I have placed console.log and it printed a,c,b sometimes c,b,a. Kindly suggest me how to manage order. i have tried priority but it is not worked. Can we place directives link function in a separate file.









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

y7HSFJJwkzwMTul Kj,OUx1WrEpXxjJY9nsnoky GP4EWIyt6SRUviwVlxR6UEUK,GyRzZ
DTc vFG Q eh,FZ64Sv

Popular posts from this blog

Rothschild family

Boo (programming language)