Is it possible to use a mixin with Vue child components?

I want to use a mixin within the child components of a Vue component. How do I do that?

I know I can create a separate file and import it within each child component and assign it to the mixins property.

What I am looking for is a solution that wont need importing in each component or passing the mixin as a prop to the child components. Is there a way maybe to import it into the parent component and be able to use it within the child components?

Your help will be highly appreciated.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.