The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Build Reusable Vue.js Components

Build Reusable Vue.js Components

2:12
By building components, you can extend basic HTML elements and reuse encapsulated code. Most options that are passed into a Vue constructor can be passed into a component. Each instance of a component has an isolated scope. Data can only be passed one direction and it must be from parent to child using `props`. To communicate with the parent element, use the `$emit` method.
Watch this lesson now
Avatar
egghead.io

By building components, you can extend basic HTML elements and reuse encapsulated code. Most options that are passed into a Vue constructor can be passed into a component. Each instance of a component has an isolated scope. Data can only be passed one direction and it must be from parent to child using props. To communicate with the parent element, use the $emit method.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?