-
-
Save arun12209/9277213ac4a79ad344ff24845ad411e2 to your computer and use it in GitHub Desktop.
dataBindingComponent.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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