Pasvaz/bindonce

Are embed ng-repeat working with bindonce directive ?

mparpaillon opened this issue · 6 comments

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

Do the phone numbers change? If not, you could use bo-repeat.

bo-repeat ? Damn I didn't see that in the doc...

I don't think the bo-repeat directive exists...

Wait. I am a bit confused right now. Sorry.

Ah right, I was living in the future, see #10. Sorry for that.

Mmmm ok. The future looks bright.

I close for duplicate #10