A simple Vue directive to turn URL's and emails into clickable links
npm install vue-linkify> A simple Vue directive to turn URL's and emails into clickable links. Based on SoapBox's Linkify.
This directive can be installed as a module:
`` bash`
$ npm install vue-linkify
or, if you're not in a module environment, just include it as a
`
The above snippet will yield:
` html`
Hello from vuejs.org
You can also pass an options argument, which takes an Object, into the directive to control its behavior. For example, modifying the above template into something like this:
` html`
will yield a slightly different HTML:
` html``
Hello from vuejs.org
A list of available options is available here.
MIT © Phan An