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

vue 3 global api breaking changes #26

Open
ahmedh01 opened this issue Sep 19, 2020 · 4 comments
Open

vue 3 global api breaking changes #26

ahmedh01 opened this issue Sep 19, 2020 · 4 comments

Comments

@ahmedh01
Copy link

looks like the new way of how the vue app is created and mounted via the global api introduced some breaking changes, making this unusable in vue 3 at the moment. reference: https://v3.vuejs.org/guide/migration/global-api.html#a-new-global-api-createapp

@andrewvasilchuk
Copy link
Owner

@ahmedh01, Thanks for creating the issue, I'll try to investigate how to support both 3.x and 2.x soon.

@NtchPlayer
Copy link

Hi @andrewvasilchuk !
Do you have any plan for the support of Vue3 on this plugin ? He is really use full and simple to use 👍

@agracia-foticos
Copy link

Please support for this plugin for Vue 3!

@arthabus
Copy link

arthabus commented Nov 16, 2024

For anyone ended up here who is just looking to optimize youtube embed videos, have a look at a vanilla js option that works in vue out of the box:

https://github.com/paulirish/lite-youtube-embed

usage:

mycomponent.vue:

<template>
    ...
    <lite-youtube :videoid="youtubeUrlIdComputed"></lite-youtube>
    ...
</template>

<script>
    ...
    import 'lite-youtube-embed';
    import 'lite-youtube-embed/src/lite-yt-embed.css';
    ...

    export default {
          ...
    }
</script>

This library internally creates a custom HtmlElement and registers it in the window scope as a "lite-youtube" tag

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

No branches or pull requests

5 participants