Are embed ng-repeat working with bindonce directive ?
mparpaillon opened this issue · 6 comments
mparpaillon commented
Hi,
If I want to list a collection of phone numbers for a collection of users what should I do to limit the numbers of $watch ?
For example:
<div bindonce ng-repeat="user in users">
<div bo-text="user.name"></div>
<ul>
<li bindonce ng-repeat="number in user.phonenumbers">
<div bo-text="number.value"></div>
</li>
</ul>
</div>
It seems that I can't prevent the second ng-repeat from adding watchers.
Hope my question is clear.
Thanks
lorenzhs commented
Do the phone numbers change? If not, you could use bo-repeat.
mparpaillon commented
bo-repeat ? Damn I didn't see that in the doc...
mparpaillon commented
I don't think the bo-repeat directive exists...
lorenzhs commented
Wait. I am a bit confused right now. Sorry.
mparpaillon commented
Mmmm ok. The future looks bright.
I close for duplicate #10