You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.
<div@initialized="onInit"></div><!-- some material component here -->
mounted(){this.mdcComponent=MDCComponent.attachTo(this.$el)// initialize itself and may cause some DOM and style changethis.$nextTick(()=>{// use nextTick because we have to wait for the DOM change this.emit(this.mdcComponent.someChild_.root_,'initialized',this.mdcComponent.someChild_)// useful for components that initialize their children like drawer, text-field and tab barthis.emit(this.$slots.default.$el,'form-initialized',this.mdcFormField)// useful for form field})},
methods: {onInit(component){this.mdcComponent=component},onFormInit(formFieldComponent){/* ... */}}
Avoid direct child access via $children.
Parent components should only listen for specific IDs.
e.g.
The text was updated successfully, but these errors were encountered: