Skip to content

Instantly share code, notes, and snippets.

@arun12209
Created July 3, 2022 11:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
dataBindingComponent.js
import { LightningElement,wire } from 'lwc';
export default class DataBindingComponent extends LightningElement {
username = 'SFDC Lesson';
email = 'admin@sfdclesson.com';
handleChange(event) {
console.log('event: '+ event);
if(event.target.label === 'Name'){
this.username = event.target.value;
}
if(event.target.label === 'Email'){
this.email = event.target.value;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment