vue.js


Emit Events and On Vuejs 2


Hi this is my parent custom events
bus.$emit('updated-users', 'Sample Data')
My component
bus.$on('updated-users', data => this.lastname = data)
This one works.
Using Callback doesn't work.
bus.$on('updated-users', function(data){
//data is displayed in the console log.
console.log(data)
//This doesn't work.
this.fetchedUsersData()
})
I need to trigger a method but it doesn't work. I can't find any example that trigger a method. Please help.

Related Links

How to vueJs filtering in on-click
How to combine grid and modal component in vuejs
Vue JS maintaining route when linking to nested routes
How to call function from watch?
What's the point of using track-by attribute along with v-for?
vue.js Bootstrap Modal Data Bind Fails
How to get access to data only after they are loaded?
vuejs route that calls filter function
Vue js: cannot redefine property: $url
How to define vue component prop structure without overriding it
How to display data in template from Vue.extend?
Vuejs return result count from filterby
Server side form validation with vue.js
vue-router not work with express
How to bind the input field with vuejs by using template
Is it possible to have two vue.js instances in different windows use the same data?

Categories

HOME
cil
wmic
wms
google-sheets-api
webdav
propertygrid
phaser-framework
tumblr
docker-windows
proguard
contact-form-7
x11
riak-ts
python-unicode
atlassian-plugin-sdk
zend-framework-mvc
zoho
distance
epicor
facebook4j
sumo
compare-and-swap
java-ee-7
jenkins-job-dsl
osmdroid
image-quality
ggmap
i3
winscp
forum
dd-wrt
pygooglechart
receipt
hashcat
rider
broadleaf-commerce
inkscape
xamarin.uitest
active-model-serializers
bing-translator-api
stress-testing
matlab-cvst
catia
floor
recycle-bin
livefyre
sapui
mcrypt
uicollectionviewlayout
rsqlite
pspice
inject
coremidi
packagemaker
json-schema-validator
gherkin
jackson-databind
gradle-eclipse
achievements
multinomial
acm
sem
anti-patterns
vine
xjc
ytplayerview
web-component-tester
jazz
guzzle6
pl-i
cocoascript
jquery-autocomplete
ghostdoc
iostream
author
slick-2.0
config-files
wic
cling
confusion-matrix
multiple-login
visual-studio-2003
lame
appfog
symfony-2.0
scrollto
entity-framework-ctp5
handwriting
ihttphandler
adobe-contribute
rijndael
post-redirect-get
winsnmp
virtualquery

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App