gulp-static-bindings
v1.0.1
Published
A gulp plugin for replacing dynamic one-way angular bindings with string literals to one-time initializable binding with static string literals
Downloads
2
Maintainers
Readme
gulp-static-bindings
Replaces one-way dynamic bindings with string literals to static string literals
gulp-static-bindings
Install
$ npm install -S gulp-static-bindings
Purpose?
- https://angular.io/guide/property-binding#binding-to-a-property for removing excessive dynamic bindings for string literals
How to use
gulp.task('string-static-literals', function() {
// Stuff here
return gulp.src('./src/**/*.html',{ base: "." })
.pipe(removeDynamicBindings())
.pipe(gulp.dest('.'));
});