angular-styleguide icon indicating copy to clipboard operation
angular-styleguide copied to clipboard

Introduce one-time binding in style-guide?

Open sh-waqar opened this issue 8 years ago • 1 comments

The normal approach for data-binding in angular is by using {{vm.foobar}} this introduce a two-way binded variable and angular initiates a $watcher. After Angular 1.3 there is a way to reduce this $watcher and in case where only one-time binding is needed {{::vm.foobar}} syntax can be used.

This will help reduce number of $watchers and increase performance.

sh-waqar avatar Apr 26 '16 05:04 sh-waqar

good idea. any community members want to make a PR?

johnpapa avatar Sep 05 '16 18:09 johnpapa