templateUrl property
The URL of an external template file.
Use templateUrl to load a template from an external HTML file. If template is also specified, template takes precedence.
Example
@Component(
selector: 'my-comp',
templateUrl: 'my_comp.html',
)
class MyComponent {}
Implementation
final String? templateUrl;