ng-cache-loader
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -12,3 +12,3 @@ /* | ||
var stub = 'var v$i=$val;\n' + | ||
'window.angular.module(["ng"])' + | ||
'window.angular.module(["$mod"])' + | ||
'.run(["$templateCache",function(c){' + | ||
@@ -33,2 +33,4 @@ 'c.put("$key", v$i)' + | ||
var mod = query.module || 'ng'; | ||
source = htmlMinifier.minify(source, { | ||
@@ -55,2 +57,3 @@ removeComments: true, | ||
result.push({ | ||
mod: mod, | ||
key: scr.id, | ||
@@ -68,2 +71,3 @@ val: resolveUrl(html), | ||
result.push({ | ||
mod: mod, | ||
key: getTemplateId.apply(this), | ||
@@ -70,0 +74,0 @@ val: resolveUrl(source), |
{ | ||
"name": "ng-cache-loader", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Puts HTML partials in the Angular's $templateCache.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -91,2 +91,11 @@ # Angular Template loader for webpack | ||
## Module | ||
By default, templates will be added to the default AngularJS 'ng' module run() method. | ||
Use this parameter to use a different module name: | ||
``` javascript | ||
require('ng-cache?module=moduleName!./path/to/myPartial.html') | ||
``` | ||
## webpack config | ||
@@ -145,2 +154,2 @@ | ||
MIT (http://www.opensource.org/licenses/mit-license.php) | ||
MIT (http://www.opensource.org/licenses/mit-license.php) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11297
200
154