No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Importing cordova plugin vars to Vue components

    Help
    2
    2
    714
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Pixelpush3r
      Pixelpush3r last edited by Pixelpush3r

      I’m attempting to use cordova-plugin-camera-preview in a quasar project, but in my Vue /layouts, I need access to the CameraPreview object this plugin provides. I’ve tried:

      • import 'cordova-plugin-camera-preview'
      • import { CameraPreview } from 'cordova-plugin-camera-preview'

      but no dice. Any tips?

      Link to plugin: https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        Usually Cordova plugins inject their object to the global window scope. I see no imports required in this plugin’s docs. So just install it then use window.CameraPreview. Or contact the plugin owner for more info.

        1 Reply Last reply Reply Quote 2
        • First post
          Last post