https://github.com/pgilad/grunt-angular-htmlify
Change your ng-attributes to data-ng-attributes for HTML5 validation
https://github.com/pgilad/grunt-angular-htmlify
Last synced: about 1 year ago
JSON representation
Change your ng-attributes to data-ng-attributes for HTML5 validation
- Host: GitHub
- URL: https://github.com/pgilad/grunt-angular-htmlify
- Owner: pgilad
- License: mit
- Created: 2014-10-13T22:45:01.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-22T17:27:34.000Z (about 11 years ago)
- Last Synced: 2025-05-09T02:16:00.175Z (about 1 year ago)
- Language: JavaScript
- Size: 227 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [grunt](https://github.com/gruntjs/grunt)-angular-htmlify
> Change your ng-attributes to data-ng-attributes for HTML5 validation using [angular-html5](https://github.com/pgilad/angular-html5)
[](https://npmjs.org/package/grunt-angular-htmlify)
[](https://npmjs.org/package/grunt-angular-htmlify)
[](https://travis-ci.org/pgilad/grunt-angular-htmlify)
*Issues with the output should be reported on the angular-html5 [issue tracker](https://github.com/pgilad/angular-html5/issues).*
## Install
```sh
$ npm install --save-dev grunt-angular-htmlify
```
## Usage
```js
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
grunt.initConfig({
'angularHtmlify': {
options: {
customPrefixes: ['ui-'] //optional
},
dist: {
files: {
'dist/index.html': 'src/index.html'
}
}
}
});
grunt.registerTask('default', ['angularHtmlify']);
```
## Options
See the `angular-html5` [options](https://github.com/pgilad/angular-html5#api)
## License
MIT ©[Gilad Peleg](http://giladpeleg.com)