Hello, we’ve had an Aurelia project up and running for a while now but some time ago we noticed that some of our radiobuttons and checkboxes weren’t automatically prefilled anymore. We were using following syntax (also partly found in the documentation):
app.ts
I don’t know why it doesn’t work within a repeater. I verified the issue with a pristine app created with latest version of aurelia-cli using default TS config.
What I would do instead is just use selectedProduct: any = products[1]; and forget about matchers. Of course if your real-life scenario is much more complicated than the examples and you MUST use matchers, I don’t know what to do.
Thank you for the confirmation. While our scenario was a indeed a little bit more complicated, your suggestion did help out for a temporary fix by just overwriting the existing value by the corresponding index in the repeated array so it’s something!