angular-requirejs-seed
angular-requirejs-seed copied to clipboard
Controller callback is needed?
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?
i have the same issue too any solution?