Questions tagged [bindonce]

Bindonce is a high performance binding for AngularJs Library.

Bindonce is a high performance binding for AngularJs Library.

21 questions
14
votes
2 answers

One-time binding with filter

I'll migrate my angularjs application from 1.2.0 to 1.3.0-rc2 and I want to change my code from bindonce to the new one-time binding.IS also used angular-translation. I write the follow code:
Abraham
  • 155
  • 1
  • 6
7
votes
1 answer

Understanding bindonce limitations

I've been reading about bindonce as a way of reducing watches and enhance performance. In an effort to better understand the package i made an example with ng-repeat. JSBIN here Without bindonce I'm getting 103 watches, 100 list items + 2…
haki
  • 9,389
  • 15
  • 62
  • 110
5
votes
3 answers

Efficient way to bind once but allowing to refresh the whole items

Let's suppose a list of 1000 items displayed with infinite scrolling. Each item displays: a person's firstName, lastName, and mood. (to make it simple) Initially, I didn't want to listen for updates. So the great angular-bindonce directive or even…
Mik378
  • 21,881
  • 15
  • 82
  • 180
4
votes
2 answers

Pass object to custom directive without creating watchers?

I have created a custom directive ("reusable component") which creates an isolated scope by binding to two objects passed to it via HTML-parameters. A problem with this quickly arises as I have up to 600 of these components in my document, which…
Vestling
  • 43
  • 1
  • 7
4
votes
2 answers

how to binding one way angular and binding again when model change?

There are any solution or angular plug-in to do binding one way and binding again when model is change? Now I'm using plug-in bind-once , But it just binding on first time and then it destroy watcher. Example:
Hai Bui
  • 303
  • 1
  • 2
  • 9
3
votes
1 answer

Difference between bo-html and bo-text

While reading the documentation of the bindonce directive, I wonder what is the difference between bo-htmland bo-text. bo-html: evaluates "markup" and render it as html inside the element bo-text: evaluates "text" and print it as text…
Mik378
  • 21,881
  • 15
  • 82
  • 180
2
votes
1 answer

Bind once in Angular 1.5+

I'm using components for my application, and I'm displaying the template only when my promise resolves : var config = function ($stateProvider) { 'ngInject'; $stateProvider.state('test', { url: '/', views: { …
redAce
  • 1,558
  • 4
  • 14
  • 24
2
votes
2 answers

Angular BindOnce, what can prevent it to work?

We're currently migrating to Angular 1.3 while testing the bindOnce functionality I encountered this problem: the exact piece of code... Controller Code: this.value = 'value'; this.clickTest = function () { this.value = 'changed'; }; HTML: //cm…
Abaco
  • 525
  • 7
  • 26
2
votes
2 answers

AngularJS - Upgrading v1.2.5 to 1.3 to use bind once

I am trying to improve the performance of my ng-repeat's. I have upgraded my project to use library v1.3.0 (main lib and route). I am trying to use the bind once as here: Do bindings nested inside of a lazy one-time ng-repeat binding bind just…
Oam Psy
  • 8,555
  • 32
  • 93
  • 157
2
votes
1 answer

AngularJs - Bindonce force refresh using refreshOn attribute

I am trying to force refresh my bindonce table after editing few records but I dont know how to use bindonce refreshOn attribute. HTML Code:
user972255
  • 1,828
  • 10
  • 32
  • 52
1
vote
1 answer

AngularJS conditional bind-once?

I'm currently working on a project that will need to display editable tables of arbitrary dimensions. I'm using AngularJS, but as the tables can get very large I expect things will get slow if I don't use some form of bind-once. The problem is, as…
Waypoint
  • 11
  • 2
1
vote
2 answers

Angularjs - How to merge one bo-class with one ng-class using the lazy loading?

I am very confuse by the version 1.3+ of angularjs, before I was using bindonce and now we have the lazy loading with '::'. I didn't find how I can bind only one class of a multiple ng-class. This was my pevious code:
1
vote
1 answer

Using a bindOnce directive with $http

I want to use the following bindOnce directive: .directive('bindOnce', function() { return { scope: true, link: function( $scope, $element ) { setTimeout(function() { $scope.$destroy(); …
Neil
  • 7,861
  • 4
  • 53
  • 74
1
vote
1 answer

AngularJS: bo-bind of bindonce and the translate filter

I'm using angular 1.2.25, angular-translate 2.0.1, angular-translate-loader-static-files 2.0.0 and angular-bindonce 0.3.1. What I want to do is translating a static translation key with bindonce. So I got this code snippet:
Niklas
  • 417
  • 6
  • 17
0
votes
1 answer

AngularJS performance in Firefox

I am building an application with AngularJS, and I am facing problems with the firefox. I think it's because I use multiple ng-repeat inside others ng-repeat, I have already tried almost all what I found in stackoverflow and forums. I have a big…
EL OUFIR Hatim
  • 267
  • 2
  • 16
1
2