Directive with templateUrl - testing with ng-html2js
问题 I created a directive with inline template, tested it, everything worked fine. Now I have put the template into separated .html file and reference it via templateUrl from directive. Directive works on my page, but the tests are broken saying: Error: [$injector:modulerr] Failed to instantiate module source/html/par tials/template-directive-my-directive.html due to: Error: [$injector:nomod] Module 'source/html/partials/template-directive -my-directive.html' is not available! You either