I want to test an AngularJs view with an external template. Almost all the examples I have found demonstrate code like this:
var element = angular.element('<div>something goes here... </div>');
element = $compile(element)(scope)
But my HTML is a little more complicated than that so I want the test to read it from a file. Where can I find an example of that?
Aucun commentaire:
Enregistrer un commentaire