We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have strange error on new Date with potential undefined property
new Date
The user.createdAt is defined in an interface with :
user.createdAt
createdAt?: Date
test: { testVal?: Date } = { testVal: new Date() }
{{ new Date(test.testVal || 0) }}
The text was updated successfully, but these errors were encountered:
This is because NewExpression is currently not handled by template interpolation service. I'll add support for it.
NewExpression
Sorry, something went wrong.
this
Add changelog for #1308
2e3a0d1
Add changelog for vuejs#1308
e69b964
ktsn
Successfully merging a pull request may close this issue.
Info
Problem
I have strange error on
new Date
with potential undefined propertyThe
user.createdAt
is defined in an interface with :createdAt?: Date
Reproducible Case
{{ new Date(test.testVal || 0) }}
The text was updated successfully, but these errors were encountered: