grunt-angular-htmlify

Change your ng-attributes to data-ng-attributes for HTML5 validation

Usage no npm install needed!

<script type="module">
  import gruntAngularHtmlify from 'https://cdn.skypack.dev/grunt-angular-htmlify';
</script>

README

grunt-angular-htmlify

Change your ng-attributes to data-ng-attributes for HTML5 validation using angular-html5

NPM Version NPM Downloads Build Status

Issues with the output should be reported on the angular-html5 issue tracker.

Install

$ npm install --save-dev grunt-angular-htmlify

Usage

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

License

MIT ©Gilad Peleg