Today I tried to separate my directives to separate files.But after that my Jasmine test returns false because the directive is not loaded to the test anymore.
The problem is that I use the same module name and second param [] in the module when define the directive in different files then only the last file will create the module with it directive. The others will be ignored.
requires (optional): If specified then new module is being created. If unspecified then the module is being retrieved for further configuration.
I just leave the [] in the first file and remove in other file and it works. You also can assign module to variable to be not confused.
First file:
Second file:
comments powered by Disqus