You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I remember (but I'm unsure) that we could use {{#with foo}} to set the context to foo. It still works the same way, but not with nested structures. Why is that?
This is correct according to the tests, even though I agree that it doesn't look right and I've fought with it before. The problem is overloading and historical implementation detail in that originally with was just a plain mustache that's an internal if-with under the covers. To avoid the issue, foo.bar has to be in place in order to render the {{#with bar}} section, which will cause the yay twoway binding to update the model with the empty string.
Description:
I remember (but I'm unsure) that we could use
{{#with foo}}
to set the context tofoo
. It still works the same way, but not with nested structures. Why is that?Versions affected:
1.4
Platforms affected:
Browser
Reproduction:
This code prints the expected output:
{"foo":{"bar":{"yay":""},"hello":""}}
However, this simplified version produces an undesired result:
The text was updated successfully, but these errors were encountered: