Рет қаралды 9,081
I really don't like AlpineJS, but it's not what you think. Let me explain. Alpine JS is the easiest framework you'll ever have to learn. With only 15 attributes, 6 properties and 2 methods you'll be up and going before you know it.
The problem is that it is something you would use for progressive enhancement...so it loads on the client side like jQuery and that might make it less performant.
The thing I love about this framework is how you use it. You create a series of x-data attributes directly on your html, which lets you create state variables, use loops and conditionals, and even load external data.
But like they say, there's no better way to get a feel for what it does than by seeing it yourself, so let's build a to do style app with it.
Index
=====
00:00 Intro
00:55 Displaying Data
01:40 Working with Lists
02:33 Two-way Data Binding
03:13 Adding an Event Handler
04:27 Removing Items
Links
====
AlpineJS: alpinejs.dev/
Bootstrap: getbootstrap.com/
Finished Code: go.raybo.org/857m
Follow Me
=======
Blog: raybo.org
LinkedIn: / planetoftheweb
Twitter: / planetoftheweb