Caleb Porzio 5 rokov pred
rodič
commit
55a7beb33f
2 zmenil súbory, kde vykonal 7 pridanie a 1 odobranie
  1. 1 1
      README.md
  2. 6 0
      index.html

+ 1 - 1
README.md

@@ -14,7 +14,7 @@ Think of it like [Tailwind](https://tailwindcss.com/) for JavaScript.
 
 
 **From CDN:** Add the following script to the end of your `<head>` section.
 **From CDN:** Add the following script to the end of your `<head>` section.
 ```html
 ```html
-<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v1.4.0/dist/alpine.js" defer></script>
+<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v1.5.0/dist/alpine.js" defer></script>
 ```
 ```
 
 
 That's it. It will initialize itself.
 That's it. It will initialize itself.

+ 6 - 0
index.html

@@ -8,6 +8,12 @@
         <script src="/dist/alpine.js" defer></script>
         <script src="/dist/alpine.js" defer></script>
     </head>
     </head>
     <body>
     <body>
+        <div x-data="{ foo: 'bar' }">
+            <span :class="foo"></span>
+
+            <button @click="foo = 'baz'">hey</button>
+        </div>
+
         <table>
         <table>
             <thead>
             <thead>
                 <tr>
                 <tr>