Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import { LightningElement } from 'lwc';
export default class LinkToAnotherCmp extends LightningElement {
raiseEvent(event){
let txtInput = this.template.querySelector(".txtInput");
const v = txtInput.value;
const textChangeEvent = new CustomEvent('txtChange',{
detail : {v},
});
//Fire Event
this.dispatchEvent(textChangeEvent);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.