ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Svelte Tutorial for Beginners - Style your Svelte component [2/3] - class: Directive

Автор: lihautan

Загружено: 2021-04-05

Просмотров: 1710

Описание: We are going to learn how to conditionally style elements in Svelte component.

-- We can pass a JavaScript expression to the class attribute. If we pass a dynamic string variable, every time the string value changes, we can apply a different class to the element. So, what's more to learn?

Yes, and in this video, we are going to explore another trick, that is more readable and concise than manipulating strings in the class attribute.

Introduction 00:00
Various ways to conditionally add class to elements 00:12
The class: directive 02:35
Shorthand for class: directive 04:30

---

💻 REPL https://svelte.dev/repl/19cce00af5ba4...

🎧 Svelte Tutorial for Beginners    • Svelte Tutorial for Beginners  

📚 Related Resources
Svelte https://svelte.dev
Svelte REPL https://svelte.dev/repl
Svelte Tutorial - Classes https://svelte.dev/tutorial/classes

🥰 Support me https://www.buymeacoffee.com/lihautan

🔗 Want to learn more from me? Check out these links:

Twitter:   / lihautan  
Blog: https://lihautan.com/
Newsletter: https://lihautan.com/newsletter

#svelte #sveltetutorial #sveltebeginner

Thanks for watching 🥰 -- with love, Li Hau

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Svelte Tutorial for Beginners - Style your Svelte component [2/3] - class: Directive

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Svelte Tutorial for Beginners: Style your Svelte component [3/3] - using CSS Custom Properties

Svelte Tutorial for Beginners: Style your Svelte component [3/3] - using CSS Custom Properties

Svelte Tutorial for Beginners - Style your Svelte component [1/3]

Svelte Tutorial for Beginners - Style your Svelte component [1/3]

Learn MongoDB in 1 hour 🍃

Learn MongoDB in 1 hour 🍃

Learn Svelte – Full Course for Beginners

Learn Svelte – Full Course for Beginners

Выучите R за 39 минут

Выучите R за 39 минут

Филипп Робертс: Что за чертовщина такая event loop? | JSConf EU 2014

Филипп Робертс: Что за чертовщина такая event loop? | JSConf EU 2014

Алгоритмы на Python 3. Лекция №1

Алгоритмы на Python 3. Лекция №1

Svelte Tutorial for Beginners - $$props and $$restProps

Svelte Tutorial for Beginners - $$props and $$restProps

10+ лет опыта React, все ради этого дня!

10+ лет опыта React, все ради этого дня!

Svelte Tutorial for Beginners #4 - User Input & Data Binding

Svelte Tutorial for Beginners #4 - User Input & Data Binding

Прекратите использовать так много медиа-запросов — вместо этого используйте clamp()!

Прекратите использовать так много медиа-запросов — вместо этого используйте clamp()!

Svelte Tutorial for Beginners - svelte:component

Svelte Tutorial for Beginners - svelte:component

BODYBUILDERS VS CLEANER  | Anatoly GYM PRANK #56

BODYBUILDERS VS CLEANER | Anatoly GYM PRANK #56

Алгоритмы и структуры данных за 15 минут! Вместо 4 лет универа

Алгоритмы и структуры данных за 15 минут! Вместо 4 лет универа

Svelte State Management Guide (Sharing Data Between Components)

Svelte State Management Guide (Sharing Data Between Components)

Building a Advent of TypeScript clone with SvelteKit, Svelte 5, monaco editor, Tailwind CSS

Building a Advent of TypeScript clone with SvelteKit, Svelte 5, monaco editor, Tailwind CSS

Linux Command Line for Beginners

Linux Command Line for Beginners

Понимание Active Directory и групповой политики

Понимание Active Directory и групповой политики

Svelte Tutorial for Beginners #2 - Setting up a Svelte App

Svelte Tutorial for Beginners #2 - Setting up a Svelte App

КАК НЕЛЬЗЯ ХРАНИТЬ ПАРОЛИ (и как нужно) за 11 минут

КАК НЕЛЬЗЯ ХРАНИТЬ ПАРОЛИ (и как нужно) за 11 минут

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]