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

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -