Can someone please illustrate the difference between using
and
elements?
I could not find document
I like
as a way to separate "logic" from "markup" as much as possible in the Angular .component.html files.
(partial) example to render rows of an html table:
{{ product.productName }}
{{ product.productCode }}
{{ product.releaseDate }}
{{ product.price }}
{{ product.starRating }}
That way, if I want to change from an HTML to something else, such as a bunch of
. It also keeps the looping (ngFor) logic from being partially obscured by the normal html.