#Angular8 tutorial in hindi |template VS #templateUrl In #Angular9 in hindi
This article will explain the difference between #template and templateUrl in angular. We will discuss these with examples.
What is the #templateUrl?
What are the differences between the template and templateUrl Angular Components?
When to use template over templateUrl and vice-versa?
Different ways to create Templates in Angular
As we already discussed that the template is a part of a component which is used to render user interface in a web page. In Angular we can create a template in two possible ways:
Inline template
Template in an external file
In Angular 2 applications, the inline templates are directly specified within the component using the template property. The below is an example of an angular inline template.
Comments
Post a Comment