Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if alpine js is activated in website

You can check by adding below code and if h1 toggled on click then setup was 
done successfully! 
  
<div x-data="{ isOpen: true }">
   <button x-on:click=" isOpen = !isOpen">Toggle</button>
	<h1 x-show="isOpen">Alpinjs</h1>
</div>
 
PREVIOUS NEXT
Tagged: #check #alpine #js #activated #website
ADD COMMENT
Topic
Name
2+7 =