Pasvaz/bindonce

Supporting two bindonce "scopes" at a time

funkjunky opened this issue · 2 comments

bindonce works by first specifying what object you are doing your bind-once operations on.

For example you specifying bind="myobject", then later use bo-text="myobject.name"
My issue is that I have two different "scopes" in a nested ng-repeat.

I tried using bindonce="firstListItem", then bindonce="secondListItem", then in the following html I have ng-if="firstListItem.isTrue", then bo-text="secondListItem.value".

I need some way of binding more than one "scope"

This feature is actually already implemented but it is undocumented at the moment. Try using bo-name="firstListItem" as attribute for the bindonce controller and bo-parent="firstListItem" as attribute for the bo-* directive

What about secondListItem?
Thanks, I'm excited to get your response, but I'm also confused by it =P