Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are embed ng-repeat working with bindonce directive ? #66

Closed
mparpaillon opened this issue Mar 9, 2014 · 6 comments
Closed

Are embed ng-repeat working with bindonce directive ? #66

mparpaillon opened this issue Mar 9, 2014 · 6 comments

Comments

@mparpaillon
Copy link

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
Copy link

lorenzhs commented Mar 9, 2014

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

@mparpaillon
Copy link
Author

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

@mparpaillon
Copy link
Author

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

@lorenzhs
Copy link

lorenzhs commented Mar 9, 2014

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

@lorenzhs
Copy link

lorenzhs commented Mar 9, 2014

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

@mparpaillon
Copy link
Author

Mmmm ok. The future looks bright.

I close for duplicate #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants