Using lightning-record-view-from in LWC
When you want to fetch a record in LWC without using JavaScript and Apex code then we will be using lightning-record-view-form.
This blog post is the next post in the series of posts that are targeted towards understanding the tags in LDS.
When you want to fetch a record in LWC without using JavaScript and Apex code then we will be using lightning-record-view-form
.
This tag has to be provided object-api-name
and record-id
attributes to fetch the record and display it back to the users.
Here is the snippet of the code.
Hope this is helpful!