Templates
The HTML markup used in web components can be defined using the template
property on a component.
It can also be created in an HTML file. A reference to the file is defined in the templateUrl
property.
Properties
The HTML attributes of a component are defined using the properties
property.
These attributes can then be used to pass data into the component.
In the example above, curly brackets interpolation {}
is used to reference the property data in the components' template. For more flexible bindings data to the template's markup, use binding attributes.
Last updated