Skip to content

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

License

Notifications You must be signed in to change notification settings

pgilad/grunt-angular-htmlify

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published