Questions tagged [vue-loader]

vue-loader is a vue.js component loader for Webpack(module bundler). it can transform Vue components into a plain JavaScript module.

vue-loader is a vue.js component loader for Webpack(module bundler). it can transform Vue components into a plain JavaScript module. It has ES2015 enabled. Using this you can use Webpack loaders for each part of a Vue component, for each component you can simulate scoped CSS, during development of the project you can do component hot-reloading, you can treat static assets as module dependencies and handle them with webpack loaders.

additional links - https://www.npmjs.com/package/vue-loader , https://github.com/vuejs/vue-loader

268 questions
116
votes
9 answers

vue js watch multiple properties with single handler

Currently I have to watch a few properties. And if each of them changes, I have to invoke the same function: export default{ // ...... rest of code watch: { propa: function(after,before) { doSomething(after,before); }, propb:…
rahulserver
  • 10,411
  • 24
  • 90
  • 164
102
votes
6 answers

Accessing props in vue component data function

I am passing a props to a component: