angularjs - Force recompilation of element using kcd-recompile -
i'm trying use: kcd-recompile recompile element. reason it's not working -seems break ng-repeat.
one way i'd work recompile single element in ng-repeat:
<ul > <li kcd-recompile='x.update_single' use-boolean ng-repeat="x in ::data">{{::x.name}}</li> </ul>
or if not, update whole ul:
<ul kcd-recompile='really_update' use-boolean> <li ng-repeat="x in ::data">{{::x.name}}</li> </ul>
any thoughts on i'm missing?
thanks.
edit
maaan .. figured out, directive needs inside ng-repeat otherwise things break. updated codepen
but need ... update li
that's repeating ?
Comments
Post a Comment