Vue JS 2.0 Child Component Mounted Callback

Solution:

If you need to know when a component has been createdmountedupdated etc. from a parent component, you can just define a listener using @hook: followed by the lifecycle hook name.

E.g. from the parent component to execute doSomething() once the child component is mounted:

<child-component @hook:mounted="doSomething" />