Skip to content

How to use it in vue.js #523

Closed
Closed
@ghost

Description

Can you give me some advice

Activity

davidjbradshaw

davidjbradshaw commented on Sep 26, 2017

@davidjbradshaw
Owner

I'm afraid I have never used Vue.js. Maybe worth asking on stackoverflow. I will leave this open in the hope some in the future can add some suggestions here.

ghost

ghost commented on Sep 28, 2017

@ghost

I have already sloved this problem. Thank you all the same.

davidjbradshaw

davidjbradshaw commented on Sep 28, 2017

@davidjbradshaw
Owner

Can you share the fix here, in case anyone else has the same issue.

alexpvieira

alexpvieira commented on Oct 16, 2018

@alexpvieira

Just sharing for anyone looking to use this library in a Vue project (the Vue part in this case will be the page contained in the iFrame).

You need to put the iframeResizer.contentWindow.min.js into your src folder then include these lines in your main.js file:

import * as Resize from './path/to/iframeResizer.contentWindow.min.js'
Vue.use(Resize)

Got it woking doing this way.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @davidjbradshaw@alexpvieira

        Issue actions

          How to use it in vue.js · Issue #523 · davidjbradshaw/iframe-resizer