vueschool / reusable-vuejs-components-with-slots

Source code for Reusable Vue.js Components with Slots course

Home Page:https://vueschool.io/courses/reusable-vuejs-components-with-slots

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reusable Vue.js Components with Slots

This repository contains the example code for the Reusable Vue.js Components with Slots course.

In this course, you'll learn how to use slots and scoped slots to create flexible and reusable Vue.js components.

Slots allow us to pass components and HTML to components, giving us greater control of the appearance than what we get with props.

Slots do not replace props. The two features have different purposes.

During the course, you'll learn:

  • When and how to use slots
  • What scoped slots are
  • How to work with dynamic named components
  • How to compose components with reusable component patterns

Click here to watch the course


Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.

About

Source code for Reusable Vue.js Components with Slots course

https://vueschool.io/courses/reusable-vuejs-components-with-slots


Languages

Language:Vue 88.2%Language:HTML 5.6%Language:CSS 4.1%Language:JavaScript 2.1%