Is there any way to prioritize the order of controllers/directives being loaded in page in AngularJS? -
i have problem controller being loaded before has been getting other directive id should have in order load himself.
how can organize order of loading component in page? there way tell controller or directive load if got in scope?
think parameter directivea create , directiveb need parameter in order being load. how prioritize order directivea createad or loaded before directiveb?
using require attribute: see documentation
function somedirective () { return { ... require: '^someothercontroller' } }
Comments
Post a Comment