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

How to pull in for Vue 2 via npm? #1

Closed
BrandonSurowiec opened this issue Oct 17, 2016 · 4 comments
Closed

How to pull in for Vue 2 via npm? #1

BrandonSurowiec opened this issue Oct 17, 2016 · 4 comments

Comments

@BrandonSurowiec
Copy link

@probil I really like this plugin. How do I pull it in via npm for Vue 2? I can't seem to target the branch.

npm install v-mask@0.2.0

Isn't finding anything.

@BrandonSurowiec
Copy link
Author

BrandonSurowiec commented Oct 17, 2016

I got it to pull in with:

npm install git://github.com/probil/v-mask#vue-2.0 --save-dev

(Or in your package.json:)

"v-mask": "git://github.com/probil/v-mask.git#vue-2.0"


Note that the syntax for masking now looks like:

<input type="text" v-mask="'##/##/#### ##:##'">

The single quotes around the mask format is important. Otherwise, Vue will render a blank page. Works perfectly.

@probil
Copy link
Owner

probil commented Oct 17, 2016

Thanks, man! I will update docs for the vue-2.0 branch soon. Sorry, I forget about it.

@probil
Copy link
Owner

probil commented Oct 27, 2016

Docs updated. And vue-2.0 branch now in npm:

For Vue 2.x

npm install v-mask

For Vue 1.X

npm install v-mask@0.1

@BrandonSurowiec
Copy link
Author

Great, thank you!

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

No branches or pull requests

2 participants