kseamon / fast-bind Goto Github PK
View Code? Open in Web Editor NEWAlternatives to AngularJS's built-in bindings that avoid taxing the digest cycle
License: MIT License
Alternatives to AngularJS's built-in bindings that avoid taxing the digest cycle
License: MIT License
Thanks for sharing Karl.
I'd love to see fast-bind-once and fast-bind-on-notify become a standard part of AngularJS!!!
Have you tested fast-bind-on-notify on large ng-repeats? From what I understand ng-repeat applies a $watchCollection to the entire dataset, so it may be dirty checking everything, even if I use only fast-bind-on-notify within the repeat.
Would it be necessary to re-write ng-repeat to really get the performance benefits?
Please see my question on Github and feel free to add an answer. Your solution is the best I've seen so far.
Thanks,
Hi - Firstly I'd like to thank you for these directives.
They've removed hundreds of watchers off some of my heavier pages.
I have found a small issue with the 'fastBindAttrOnce' directive.
I have a list of users and I tried to use that directive to remove the watcher for their profile pic.
However, for some reason the first user is always missing a picture.
I've created a Plunker here to demo the issue.
Could anyone share any light onto why this is happening.
http://plnkr.co/edit/u33lpq3YpoeHPmltwZwb?p=preview
The example repeats 1-5 but only 4 images appear with the first image missing again.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.