-
Is it possible to make alpine check this condition again on screen resize? For example: <div class="example-block" x-data="{isMobile: (window.innerWidth < 1024) ? true : false}">
<div x-show="isMobile">
I see you're on mobile
</div>
</div> |
Beta Was this translation helpful? Give feedback.
Answered by
Tim-Wils
Sep 28, 2021
Replies: 1 comment 2 replies
-
You van use x-on:resize.window
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
broskees
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You van use x-on:resize.window