-
Notifications
You must be signed in to change notification settings - Fork 159
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
How can i make it work in vuejs? also in mobile #39
Comments
Did you make any progress? |
Would be nice to have a Vue and React component. However, for the purposes of Vue you should just be able to use vanilla JavaScript. I know at least one user has done this. If I were trying to make it work entirely in the browser, I might try to use (with Except I would use a |
A simpler solution woud be:
This should work in any js file. :) |
I used it on my NuxtJs code which is built on top of VueJS Not sure what ur facing |
Im doing the same but I dont know how use it in a component, I already import vcard like you |
hey, I am using typescript with my code and it won't let me set values to the vCard, so all I'm getting is start and end tag and a bunch of ;;;'s here's my implementation <script setup lang="ts">
import vCard from 'vcards-js';
//...
const generate_vCard = () => {
vCard.firstName = 'Rayian';
vCard.lastName = 'Mahi';
console.log(vCard.getFormattedString())
download(vCard.getFormattedString(), 'vcardFile.vcf')
}; The TS error I'm getting is I can only access the attributes when I invoke the vCard function, but that wont let me set new values. |
import vCardFactory from 'vcards-js';
const vCard = vCardFactory(); this fixed my issue |
Please someone upload an implementation
The text was updated successfully, but these errors were encountered: