Skip to content

Instantly share code, notes, and snippets.

@arun12209
Created July 3, 2022 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arun12209/52692200029c63631c8b3978b1c83413 to your computer and use it in GitHub Desktop.
Save arun12209/52692200029c63631c8b3978b1c83413 to your computer and use it in GitHub Desktop.
dataBindingComponent.html
<template>
<lightning-card title="Data Binding Example" icon-name="standard:lightning_component">
<div class="slds-p-around_x-large">
<p>User Name : <span style="color: rgb(76, 0, 255);">{username}</span></p>
<p>User Email : <span style="color: rgb(255, 0, 98);">{email}</span></p>
<lightning-input label="Name" value={username} onchange={handleChange}></lightning-input>
<br/>
<lightning-input label="Email" value={email} onchange={handleChange}></lightning-input>
</div>
</lightning-card>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment