13 lines
341 B
JavaScript
13 lines
341 B
JavaScript
import { LightningElement } from 'lwc';
|
|
import pubSub from 'c/pubSub';
|
|
export default class Publisher extends LightningElement {
|
|
|
|
handleOnClick(){
|
|
console.log("Event Firing");
|
|
let message ={
|
|
"message" : 'Hello Bro'
|
|
}
|
|
pubSub.fire('simplevt',message);
|
|
console.log('Event Fired');
|
|
}
|
|
} |