1×
Become a member
to unlock all features
Autoplay

    Create Type-Safe Vue Directives in TypeScript

    vueVue.js
    ^2.2.6

    Directives allow us to apply DOM manipulations as side effects. We’ll show you how you can create your own Vue directive to change a component’s colors and type-safe it with TypeScript.

    We’ll additionally show how you can pass objects to your directives and make them more flexible!