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

Does Not Work On Component #14

Closed
krisanalfa opened this issue Jan 3, 2017 · 2 comments
Closed

Does Not Work On Component #14

krisanalfa opened this issue Jan 3, 2017 · 2 comments

Comments

@krisanalfa
Copy link

Here's my component:

<template>
<input :v-mask="adrMask">
</template>

<script>
export default {
  name: 'awesome-input'
  props: ['adrMask']
}
</script>

In another Component:

<template>
<awesome-input adr-mask="###.###.###.###,##"></awesome-input>
</template>

Am I doing something wrong?

@harrysbaraini
Copy link

You don't need the ':' on input. It should be:

<input v-mask="adrMask">

v-mask already asks for a variable binding. If you check out the README, you'll notice it shows v-mask="'###'" (note the single quotes).

@probil
Copy link
Owner

probil commented Feb 13, 2017

Hay @krisanalfa, is the answer from @harrysbaraini helped you to solve the issue?

@probil probil closed this as completed Feb 26, 2017
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

3 participants