I'm submitting a bug report
Please tell us about your environment:
Current behavior:
Similar to aurelia/framework#301: repeat.for and oneTime bindings don’t work properly together.
The specific problem in aurelia/framework#301 is fixed, but as soon as you insert a if.bind between the repeat.for and the One-Time-Binding, the problem reappears:
welcome.html
<template>
<button click.trigger="clickme()">Click me!</button>
<div repeat.for="item of items">
<div if.bind="item">
${item.prop1 & oneTime}
</div>
</div>
</template>
welcome.js
export class Welcome {
items = [{prop1:1},{prop1:2},{prop1:3}];
clickme() {
this.items = [{prop1:4},{prop1:5}];
}
}
After clicking the button, the content reads
i.e. the number of items is updated, but their content is not.
Expected/desired behavior:
After clicking the button, the content should be
I'm submitting a bug report
1.7.1
Please tell us about your environment:
Operating System:
OSX 10.x
Node Version:
8.9.1
NPM Version:
61.0
JSPM OR Webpack AND Version
webpack@4.8.3
Browser:
all
Language:
all
Current behavior:
Similar to aurelia/framework#301:
repeat.forandoneTimebindings don’t work properly together.The specific problem in aurelia/framework#301 is fixed, but as soon as you insert a
if.bindbetween therepeat.forand the One-Time-Binding, the problem reappears:welcome.html
welcome.js
After clicking the button, the content reads
i.e. the number of items is updated, but their content is not.
Expected/desired behavior:
After clicking the button, the content should be