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

Projects
None yet
2 participants
@nowshad-sust
Copy link

commented Jul 18, 2017

@phanan

@rklak

This comment has been minimized.

Copy link

commented Jun 11, 2018

Quick fix without this library:

add:

    <script src="https://cdn.jsdelivr.net/npm/linkifyjs@2.1.6/dist/linkify.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/linkifyjs@2.1.6/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
You can’t perform that action at this time.