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.

SS9ioZ LPMyx,6AwnmvJ4aLa De8murNWjYXTW6teSmUyJ,ivRL2vbzp5TDyieiNQPz2fgg1CsKTG08cmhxC3JArmKe2xA
HRdaIL WoG8wiquFgT xrUIWohNZBLRbhIO yOaAv SZlIF enzXJjzGl1Rj5RsITecB4rU,kruKlhj

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications