Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimization #32

Open
bpmweel opened this issue Jul 26, 2016 · 3 comments
Open

Optimization #32

bpmweel opened this issue Jul 26, 2016 · 3 comments
Assignees

Comments

@bpmweel
Copy link
Contributor

bpmweel commented Jul 26, 2016

Perhaps at some point we need to look at some optimizations like these: https://www.binpress.com/tutorial/speeding-up-angular-js-with-simple-optimizations/135

@blootsvoets
Copy link
Collaborator

Taking a look through our code.
http://stackoverflow.com/questions/26735629/angular-js-1-3-one-time-binding-in-ng-bind
For reference: ng-bind also supports double colon :: syntax: <span ng-bind="::vm.title"></span>.

@blootsvoets
Copy link
Collaborator

The same double colon syntax works for other expressions as well.
http://stackoverflow.com/questions/23969926/angular-lazy-one-time-binding-for-expressions
E.g. <span ng-if="::vm.shouldShow">Show me</span> evaluates once.

@blootsvoets
Copy link
Collaborator

And double colons even work in ng-repeat:
https://toddmotto.com/angular-one-time-binding-syntax/
<div ng-repeat="task in ::vm.tasks track by task._id">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants