Questions tagged [bindonce]

Bindonce is a high performance binding for AngularJs Library.

Bindonce is a high performance binding for AngularJs Library.

21 questions
0
votes
2 answers

Bindonce with ng-repeat

I've used Bindonce to improve performance of ng-repeat. But I have one problem : Collection that is used from ng-repeat is filled with data a bit later (request data from API takes some time), so it's empty, cause updating is prevented by…
demo
  • 6,038
  • 19
  • 75
  • 149
0
votes
1 answer

Bind attribute only once (like bindonce)

On a component is it possible to bind in the style like bindonce? Please provide an example.
Amio.io
  • 20,677
  • 15
  • 82
  • 117
0
votes
1 answer

Possible to have Angular ng-if with multiple conditions, some bound once, some two-way?

My question is not whether or not you can use multiple conditions in ng-if, but rather whether or not it's possible to have ng-if with only some conditions bound once, while others watch for updates? As a simple example, if I want to bind the name…
user1331784
  • 188
  • 2
  • 9
0
votes
1 answer

Bindonce on ngRepeat

What is the effect of using the native bindonce on an ng-repeat object? For example: ng-repeat="data in ::stuff" Does this mean every item in 'stuff' has the watcher removed? Or do you still need to apply bindonce to every child bind in the repeat…
pram
  • 642
  • 1
  • 6
  • 13
0
votes
0 answers

Angularjs 1.3 One Time Binding Not Always Working

Looking at the documentation I'm supposed to prepend :: to the expression and it should remove itself. What I don't get is why it sometimes works and sometimes doesn't. I've created a Plunker here that 80% of the time will run all the correct…
Maruf
  • 890
  • 3
  • 10
  • 21
0
votes
1 answer

bindonce with ng-repeat causes errors

I'm trying to use bindonce with an ng-repeat and it is causing the error: Controller 'bindonce', required by directive 'ngRepeat', can't be found! Here is the div causing the issue:
Jim Cooper
  • 5,113
  • 5
  • 30
  • 35
1
2