April 2017
Intermediate to advanced
454 pages
12h 51m
English
Vue will use different strategies for mixing different options.
As a general rule, options that contain objects are merged into one big object. For example, if you have a component that contains three methods and your mixin adds one, the final component will contain all of them. When you have two methods with the same name (or computed properties, components, directives, and so on), the mixin's keys will be discarded.
Hook functions don't get merged, but both the mixin's and the component's are launched, with the ones from the mixin taking precedence.
Read now
Unlock full access