grunt-html2js
Version:
Compiles AngularJS templates to JavaScript
11 lines (9 loc) • 583 B
JavaScript
angular.module("templates-regex_in_template", ["../test/fixtures/pattern.tpl.html"]);
angular.module("../test/fixtures/pattern.tpl.html", []).run(["$templateCache", function($templateCache) {
$templateCache.put("../test/fixtures/pattern.tpl.html",
"<form>\n" +
"<span class=\"registration-error\" ng-show=\"regForm.password.$error.pattern\">- Fail to match..</span>\n" +
"<input type=\"password\" ng-model=\"registerForm.password\" name=\"password\" ng-pattern=\"/^.*(?=.{8,})(?=.*[a-z])(?=.*[A-Z])(?=.*[\\d\\W]).*$/\" required/>\n" +
"</form>\n" +
"");
}]);