I'm trying to separate a directive to another file, without having to declare a new module - not doing:
angular.module('myapp.newmodule',[]).directive
but just :
angular.module('myapp.directives').directive(''
the myapp.directives module exists in another file and works fine. but when I try to use it in another file as shown above (without []
) it fails.
following this answer It believe my approach should work, but for some reason it fails..