문제

I have a template who is iterating on a list of numbers and create a form. I don't want the changes made to the forms propagated to the underlying values, therefore, i am using a one way-binding.

Unfortunately, it doesnt't seems to work : JSBin

Thanks you a lot !

도움이 되었습니까?

해결책

Your problem is that the Binding is setup at the "list" level, so the oneWay binding does not apply to specific items and their properties.

Instead of a oneWay binding, you can create a computed property which generates a new copy of your list.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top