Problem
Create a Lightning web component (LWC) to display a variable value from javascript file using data binding.
The component must include a paragraph tag (<p>) which display an public property called "name" from javascript.
To know more about how to bind a variable from javascript variable in lwc please check this link from the official guide.
Instructions:
- Define a public variable "name" (@api) in the javascript file.
- Create a paragraph tag (<p>) in the html file.
- Bind the javascript public variable inside the p tag.
Note : This exercise introduces you to creating a simple LWC component to bind data from the javascript file. Focus on meeting the requirements, and feel free to validate your code using the execute button.
To learn more about lightning web components, click here to visit the lightning web components developers guide