• Shaarli
  • Tag cloud
  • Picture wall
  • Daily
  • RSS
  • Login
4251 shaares
 
Filters
2 results tagged vue

Vue.js best practices ✓ – Riccardo Polacci – Medium

QRCode

Summary

Clear event listeners on component destroy with $off source
Always use kebab-case for event names source
Avoid calling the same method in created and watch source
Always use :key in v-for loops source
Use $_ for mixins properties source
What’s used in mixin should be grabbed inside the mixin
Use PascalCase or kebab-case for single file components source
Use prefix for Base Component names source
Use PascalCase for component names in JS source
Prop names should always use camelCase during declaration, but kebab-case in templates source
Use Component options order from style guide source
Never use v-if on the same element as v-for source
Actions must always return. This avoids misunderstanding on when the action is done.
Use selectors inside actions and getters.
https://medium.com/@riccardopolacci/vue-js-best-practices-c5da8d7af48d
January 4, 2019 at 11:35:24 AM EST *
vue
FILLER

Why we chose Vue.js over React

QRCode
http://pixeljets.com/blog/why-we-chose-vuejs-over-react/
April 5, 2017 at 6:56:40 PM EDT *
vue javascript frameworks
FILLER
Shaarli · The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community · Documentation
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community