Type Safe Custom Directives (Advent of Vue #16)

preview_player
Показать описание
My solution to the 16th Advent of Vue challenge! Pretty quick one, and something that doesn't get as much attention as it probably deserves - custom directives.

If you like my teaching style, I have a book and two courses!
Рекомендации по теме
Комментарии
Автор

this is very helpful if you are making something generic that could apply to many components like a ripple effect or a loading overlay,
i'm learning alot form your videos thanks

shareefhassan
Автор

Very useful stuff, thanks for yet again another great video.

michaelm
Автор

You're dope . Keep it up, thank you

lGuD
Автор

Great video! If you do make a follow-up with tests I'd love to see you handle the case where an element has both a class attribute and a classList-modifying directive. Is there a safe way to merge the two? By default, the class attribute will blow-away the classList changes that were applied during the `created` hook

bendevine