Structural Directives in Angular

Structural Directives areo responsible for the DOM layout. These directives will shape or reshape the HTML view by simply adding or removing the elements from the DOM.

Aug 9, 2024 - 08:45
Sep 11, 2024 - 06:59
 0  32
Structural Directives in Angular
Structural Directives, Directive, Angular, Programming, thetechfoyer,thetechfoyer.com

These directives are basically used to handle how the component or the element should render in a template.

All structural Directives are preceded by Asterix (*) symbol. This is a structural directive shortcut. This is converted to a lengthier form under the hood by Angular. Internally Angular surrounds the host element and its content within tag. That means the is accessable in directive’s class via TemplateRef.

What's Your Reaction?

like

dislike

love

funny

angry

sad

wow

Deepak Talwar Technical Architect and Full Stack Developer with 18+ years of Professional Experience in Microsoft Technologies & PHP Platform. Hands on experience with C#, VB, ASP.NET, ASP.NET MVC, ASP.NET Core, ASP.NET Web API, Linq, ADO.NET, Entity Framework, Entity Framework Core, Sql Server, MYSQL, NoSql, Javascript, Angular, jQuery, AWS, Azure, React, Angular, Laravel, Codeingiter, Serenity, VBA, Cloud Computing, Microservices, Design Patterns, Software Architecture, Web Design and Development.