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
When you try to access a property that has a special character via t-model you get the following error: Uncaught (in promise) Error: Invalid t-model expression: "obj.$hello" (it should be assignable)
I'm not sure if this is expected or not. I wanted to create this issue because the error message had me scratching my head for a little while. It doesn't seem to be consistent with what works in something like a t-esc. I can always access the property with the [] notation (as shown in the workaround below), and that handles the special characters without a problem.
Issue:
When you try to access a property that has a special character via
t-model
you get the following error:Uncaught (in promise) Error: Invalid t-model expression: "obj.$hello" (it should be assignable)
I'm not sure if this is expected or not. I wanted to create this issue because the error message had me scratching my head for a little while. It doesn't seem to be consistent with what works in something like a
t-esc
. I can always access the property with the[]
notation (as shown in the workaround below), and that handles the special characters without a problem.Javascript:
Template:
Workaround:
The text was updated successfully, but these errors were encountered: