Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

seriouslysean/usage--vue-2.6-mixin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue Mixin Usage

If nothing else, remember the following:

  • A mixin object can contain any component options.
  • When a mixin and the component itself contain overlapping options, they will be “merged” using appropriate strategies. This varies by type.
  • You can apply a mixin globally and it will affect every Vue instance created afterwards.

Running the Application

  • Run npm install to install the required packages
  • Run npm run serve to start the application

Mixin Types

Standard Mixin

  • See alert.js, included and used in each of the three components, src/components/ComponentOne.vue, etc.

Global Mixins

  • See version.js, included in src/main.js and used in src/App.vue

Recommended Reading

About

Vue Mixins, how do they work?

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published