What are Templates in Angular? Briefly explain.

912    Asked by rakeshJha in Python , Asked on Dec 27, 2019
Answered by rakesh Jha

The templates are basically the views with HTML which are enriched by directives and attributes of Angular elements. Angular templates have HTML markup, directives, CSS, form controls, expressions and filters.

Templates are of two types:

Static Templates- defined by script tag and has id-attribute and type-attribute.  

Dynamic Templates-is basically an HTML page.


Fig: Simple Angular’ Template




Your Answer

Interviews

Parent Categories