Saturday, December 28, 2019

Data Binding in lightning web component

We can bind the property in the HTML template with property in the Javascript file and for this, we need to surround the property in the HTML template with the curly braces as shown below.

{propertyName}

A sample example is to understand data binding is shown in the below images.


Data Binding in lightning web component
Data Binding in lightning web component

No comments:

Post a Comment