check if alpine js is activated in website

Solutions on MaxInterview for check if alpine js is activated in website by the best coders in the world

showing results for - "check if alpine js is activated in website"
Émeric
26 Jun 2017
1You can check by adding below code and if h1 toggled on click then setup was 
2done successfully! 
3  
4<div x-data="{ isOpen: true }">
5   <button x-on:click=" isOpen = !isOpen">Toggle</button>
6	<h1 x-show="isOpen">Alpinjs</h1>
7</div>