How can I get the value of window.innerWidth? #2045
Unanswered
nisa6delgado
asked this question in
1. Help
Replies: 1 comment
-
Weird, it should work: https://codepen.io/SimoTod/pen/powrjEG |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need a variable defined inside x-data to have true or false value according to the window.innerWidth. But it tells me that window.innerWidth is undefined, I suppose because of the context. How can I get the value of window.innerWidth?
Beta Was this translation helpful? Give feedback.
All reactions