Custom Vue Directives
Plans from $25/month

This lesson is for members. Join us?

Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!

🚧 NOTICE: You are watching a Vue.js 2 lesson

Directive's Argument

Custom Vue.js directives support up to one argument. The argument, in this case slow, is specified with the colon v-switch-color:slow.

In this lesson, we're learning how we to create a speed argument for our custom directive.