Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<script> tag doesn't work because of require command in vue-linkify.min.js #2

Open
nowshad-sust opened this issue Jul 18, 2017 · 1 comment

Comments

@nowshad-sust
Copy link

nowshad-sust commented Jul 18, 2017

@phanan

@rklak
Copy link

rklak commented Jun 11, 2018

Quick fix without this library:

add:

    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/linkify.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/linkify-element.min.js"></script>

Write this in your js script:

window.Vue.directive('linkified', function (el, binding) {
    linkifyElement(el, binding.value);
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants