/dataBindingComponent.js Secret
Created
July 3, 2022 11:22
Star
You must be signed in to star a gist
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