Back to Browse

Django and Alpine.js - Introduction to Alpine.js

12.9K views
Jan 5, 2022
20:25

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 formats

Video Formats

360pmp433.4 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Django and Alpine.js - Introduction to Alpine.js | NatokHD