I have a problem with AngularJs directive. The directive is working fine when I'm using "template". But when I'm trying to work with "templateURL".
The js file of the directive and the html file for the template are in the same directory. In the template file theres the same code as in the template field in my directive.
Why is this not working? I don't understand it.
Thanks for your help!


templateUrl: "test.html"