Django and Alpine.js - Introduction to Alpine.js
In this video, we'll introduce the Alpine.js library - this is a lightweight JavaScript library that provides directives that can help you build basic functionality into your templates. Alpine.js is a client-side library and works with any backend technology - we will use Django in this video. ๐ ๐๐ต๐ฎ๐ฝ๐๐ฒ๐ฟ๐: 00:00 Intro 01:04 Setup 03:09 Building a Counter component 06:04 Binding input element to data with the x-model directive 07:39 Building interactive list component with x-for directive 09:50 Adding image and binding src attribute 11:02 Toggling images with x-show directive 14:03 Changing class with x-bind directive 15:24 Transitions with the x-transition directive 16:13 Fetching data from server with x-init directive 19:45 Outro โ๏ธ ๐๐๐ ๐บ๐ฒ ๐ฎ ๐ฐ๐ผ๐ณ๐ณ๐ฒ๐ฒ: To support the channel and encourage new videos, please consider buying me a coffee here: https://ko-fi.com/bugbytes โถ๏ธ Full Playlist: https://www.youtube.com/playlist?list=PL-2EBeDYMIbQTx0h0EQfw3BXjqRQTiX_c ๐ฆ๐ผ๐ฐ๐ถ๐ฎ๐น ๐ ๐ฒ๐ฑ๐ถ๐ฎ: ๐ Blog: https://www.bugbytes.io/posts/introduction-to-alpinejs/ ๐พ Github: https://github.com/bugbytes-io/django-alpinejs-examples ๐ฆ Twitter: https://twitter.com/bugbytesio ๐ ๐๐๐ฟ๐๐ต๐ฒ๐ฟ ๐ฟ๐ฒ๐ฎ๐ฑ๐ถ๐ป๐ด ๐ฎ๐ป๐ฑ ๐ถ๐ป๐ณ๐ผ๐ฟ๐บ๐ฎ๐๐ถ๐ผ๐ป: Starter Code: https://github.com/bugbytes-io/django-alpinejs-examples Alpine.js docs: https://alpinejs.dev/start-here x-transition directive: https://alpinejs.dev/directives/transition #django #alpinejs #python
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.