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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -