javascript - angular one-time binding syntax gives blank output -


trying use one-time binding syntax angular output not work when put :: vm.doctors.

$interpolateprovider.startsymbol('{['); $interpolateprovider.endsymbol(']}');  <li ng-repeat="item in ::vm.doctors">     {[ ::item.name ]} </li> 

what doing wrong ?

can set vm.doctors = []; , one-time binding gets final value? explain not updating values when $http.get finishes, in totally different digest cycle after variable stabilized. setting variable in get callback first time should solve issue.

if allow further updates of collection (like loading more items on scroll), don't set one-time binding on collection, on items.


Comments

Popular posts from this blog

javascript - Knockout pushing observable and computed data to an observable array -

'hasOwnProperty' in javascript -

Trouble making a JSON string -