angular-html5
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "angular-html5", | ||
"description": "Change your ng-attributes to data-ng-attributes for html5 validation", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"engines": { | ||
@@ -6,0 +6,0 @@ "node": ">=0.10.0" |
@@ -89,3 +89,3 @@ # angular-html5 | ||
??? | ||
?? | ||
@@ -102,22 +102,22 @@ ## API | ||
`htmlify.test(str)` | ||
Test whether a string containing HTML has `ng-attributes` that can be transformed | ||
to `data-ng-attributes`. | ||
Accepts: `string` | ||
**Usage**: `htmlify.test(str)` | ||
Returns: `Boolean` | ||
**Accepts**: `string` | ||
**Returns**: `Boolean` | ||
#### replace | ||
`htmlify.replace(str)` | ||
Return a transformed string that contains `data-ng-attributes` or relevant transformed attributes | ||
for `customPrefixes`. | ||
Accepts: `string` | ||
**Usage**: `htmlify.replace(str)` | ||
Returns: `string` | ||
**Accepts**: `string` | ||
**Returns**: `string` | ||
### params | ||
@@ -129,4 +129,2 @@ | ||
Type: `Array` | ||
An array to optionally add custom prefixes to the list of converted directives. | ||
@@ -140,5 +138,7 @@ | ||
Defaults to `[ ]` | ||
**Type**: `Array` | ||
Example usage: | ||
**Default**: `[ ]` | ||
**Usage**: | ||
```js | ||
@@ -145,0 +145,0 @@ var str = require('angular-html5')({customPrefixes: ['ui-']}).replace(oldStr); |
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
6956