angular-requirejs-seed icon indicating copy to clipboard operation
angular-requirejs-seed copied to clipboard

Controller callback is needed?

Open wickY26 opened this issue 11 years ago • 1 comments

Hi,

I am trying to implement lazy loading for my project and for doing this I used your seed project, till now it works perfectly I set up all things and worked as I intended.

the problem is when I tried to use one of my directives which needs some attributes from controller cannot get attributes because directives start working after controller injected but in your project controller should be injected in controller, and while controller doing this directives started already and catch all attributes as undefined (because real controller still working and no attributes variable is filled).

So first solution which comes to my mind is adding callback to controller to be sure all variables are filled.

do you have any other suggestion?

wickY26 avatar Oct 10 '13 08:10 wickY26

i have the same issue too any solution?

NourSammour avatar Apr 09 '14 23:04 NourSammour