angular-tpl2js
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -151,2 +151,3 @@ var async = require('async'); | ||
// shift optional config argument | ||
if(arguments.length === 2 && Object.prototype.toString.call(arguments[1]) == '[object Function]') { | ||
@@ -153,0 +154,0 @@ done = config; |
{ | ||
"name": "angular-tpl2js", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Convert Angular templates to inline JavaScript", | ||
@@ -16,3 +16,5 @@ "files": [ | ||
"chai": "^3.5.0", | ||
"coveralls": "^2.11.9", | ||
"gulp": "^3.9.1", | ||
"gulp-istanbul": "^0.10.4", | ||
"gulp-mocha": "^2.2.0", | ||
@@ -19,0 +21,0 @@ "gulp-util": "^3.0.7", |
@@ -7,3 +7,6 @@ # angular-tpl2js | ||
[![devDependency Status](https://img.shields.io/david/dev/scniro/angular-tpl2js.svg?label=devDeps&style=flat-square)](https://david-dm.org/scniro/angular-tpl2js#info=devDependencies) | ||
[![Coverage](https://img.shields.io/coveralls/scniro/angular-tpl2js.svg?style=flat-square)](https://coveralls.io/github/scniro/angular-tpl2js) | ||
[![Climate](https://img.shields.io/codeclimate/github/scniro/angular-tpl2js.svg?label=climate&style=flat-square)](https://codeclimate.com/github/scniro/angular-tpl2js) | ||
## Install | ||
@@ -23,3 +26,4 @@ | ||
tpl2js.inline('/js/directive.js', function (err, result) { | ||
// result = directive.js with template inline | ||
// directive.js with inline template | ||
}); | ||
@@ -41,2 +45,12 @@ ``` | ||
} | ||
``` | ||
*** | ||
```javascript | ||
tpl2js.inline('/js/directive.js', {include: true}, function (err, result) { | ||
// directive.js with inline template: ng-include parsed | ||
}); | ||
``` |
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
9703
146
53
7