2 results
tagged
vue
Vue.js best practices ✓ – Riccardo Polacci – Medium
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.
January 4, 2019 at 11:35:24 AM EST
*
FILLER