Custom Directive Example

In this example we are integrating a 3rd party jQuery plugin (select2) by wrapping it inside a custom directive.

This is the documentation for an older version of Vue.
If you’re looking for the current documentation click here.