How to register an event in a parent component in LWC?


Import {LightningElement, track} from ‘lwc’
import { registerListener } from ‘c/pubsub’;
export default class democomponent extends LightningElement {
@track datavalue= [];

connectedcallback(){ registerListener(‘anothercomponentmethodname’, this.methodName, this); }}

About the author

By Rohit

Recent Posts

Recent Comments

Archives

>