![]() ![]() You can manipulate DOM in the markup with these directives. You can use a nested tag with directives.ĭirectives are special HTML attributes, such as if:true and for:each, that gives you more control over the DOM in markup. ![]() HTML templates also render Salesforce org data to the DOM. ![]() You can also use nested tags to work with directives. You have to use a root tag in your HTML template. It is best practice to let LWC manipulate the DOM rather than writing JavaScript to do so programmatically. The templating system, which uses the virtual DOM to render components intelligently and efficiently, is the power of Lightning Web Components. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |