Skip to content

Date comparisons don't work in v-if/v-show #784

New issue

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

Closed
cheapsteak opened this issue Apr 15, 2015 · 0 comments
Closed

Date comparisons don't work in v-if/v-show #784

cheapsteak opened this issue Apr 15, 2015 · 0 comments

Comments

@cheapsteak
Copy link
Contributor

http://jsfiddle.net/5sH6A/92/

<div v-if="Date.now() < new Date('2020-01-01')">ASDFGASDFGASDFG</div>
<div v-if="Date.now() > new Date('2020-01-01')">QWERTQWERTQWERT</div>

Seems like it's converting new Date into newDate and trying to look for both that and Date in the properties list in the current scope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants