Skip to content
0:00 / 0:00

#vue#vue.js#v-on

7 Secret Patterns Vue Consultants Don’t Want You to Know - Chris Fritz

fitc

10K subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 on Stack Overflow and its sister sites.
  • Presented by Chris Fritz
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

91K views8 years ago1 recommendation

Web developmentVue, Svelte, Angular and othersJavaScript

Chris Fritz shares advanced Vue.js patterns, undocumented APIs, and techniques like transparent wrappers using v-on and $attrs.

There’s an astounding amount of power packed away in Vue, despite its small size. The official guide provides a gentle learning path and the API is thorough, but new features are added all the time and it’s easy to miss small, but significant updates that could change the way you write Vue apps. Chris shares some of these features, a few undocumented APIs, and other patterns that clients and community members are consistently amazed by. It’ll be hard not to open your laptop and start coding once you see these. Check out all our events fitc.ca twitter.com/fitc Save 10% off any FITC event with discount code 'youtube'. See our upcoming events at www.fitc.ca

Why it's here

1 person recommends this

What people say. Recommended as a great explanation of how to use v-on and $attrs for transparent wrappers in Vue.

Moments people linked to

Daniel Rodríguez Mezaon Stack Overflow • Recommends

On “Vuetify, tooltips: what are "on" and "attrs" for?”

I could explain myself what that means, but I consider that this video explains it a lot better I let you the time where it stars explaining the utility of v-on and attrs Just take a look to the section Transparent wrappers link to this video Summary v-on : Binds a series of listener functions More in: https://v2.vuejs.org/v2/api/#v-on $attrs : Stores the attributes setted in the parent component, you can reuse them in a inner component More in: https://v2.vuejs.org/v2/api/#inheritAttrs You can find other usages besides of what is shown in the video, but transparent wrappers are a common use case.
10View the answer