Adventures in Angular cover image

Angular Structural Directives and Their Microsyntax - AiA 374

Adventures in Angular

00:00

Angular's Structured Directives

A structural directive is when you apply any Angular directives into an ng template instead of any other elements. So if you're applying your directive to a div, then it's not a structural directive. When you have an asterisk in front of the directive, this tellsangular that during compilation time, angular should replace that asterisk with an ng template and apply your directive there. With structural directives, you declare the structure and you don't render.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app