Questions tagged [vue-directives]

A Vue.js directive can only appear in the form of a prefixed HTML attribute that takes the following format:

<element
  prefix-directiveId="[argument:] expression [| filters...]">
</element>

Common directives are v-if , v-for, v-model...

218 questions
6
votes
2 answers

Extend Vue.js v-on:click directive

I'm new to vuejs. I'm trying to create my first app. I would like to show a confirm message on every click on buttons. Example: My question is: Can I extend the v-on:click…
LorenzoBerti
  • 6,704
  • 8
  • 47
  • 89
5
votes
3 answers

Dynamically data doesn't update when changing v-model input value in Vuejs

I am building a weather app with this Weather API. I am trying to add an field value that when it changes the city name, then updates the other values forecast. I have created the field which updates the city value & it should…
Manuel Abascal
  • 5,616
  • 5
  • 35
  • 68
5
votes
2 answers

destroy watch in vnode context in vuejs2

In directive bind method, there is a vnode.context.$watchand every time that directive added to HTML, it is also adding another watcher with previous watcher. Because of that same watchers are calling more than once. Is there any way to destroy the…
Anik Saha
  • 4,313
  • 2
  • 26
  • 41
5
votes
1 answer

Using intl-tel-input and vuejs2 together

I am trying to implement https://github.com/jackocnr/intl-tel-input with vuejs2. If I add inside one jQuerydocument.ready, $('#phone').intlTelInput({ options...}) Everything works as expected but when I'm trying to fetch the value of the input field…
Angelin Calu
  • 1,905
  • 8
  • 24
  • 44
4
votes
1 answer

[Vue warn]: Failed to resolve directive: b-popover