Hi,
I’m trying to implement the checkbox example from:
https://aurelia.io/#array-of-objects-with-matcher
but wanted to put checkbox inside a repeat. This seems to work only by adding an additional matcher.bin
on the element that carries the repeat.for. Is that intended.
Sample can be found here:
Thanks!
2 Likes
@reinholdk Okay, so you’ve encountered a bug that was fixed a very long time ago and sadly, not documented. I have forked your sandbox and applied the useInnerMatcher
fix inside of main.ts
for you.
By disabling the inner matcher, you tell the repeater not to look to the template context inside of the repeater for your matcher.
The reason this is not false by default is for backwards compatibility reasons (I believe). In Aurelia 2 this issue won’t be present.
2 Likes