Adventures in Angular cover image

Angular Structural Directives and Their Microsyntax - AiA 374

Adventures in Angular

00:00

How to Create a Structured Directive in Angular

The only thing that you have to do is create a regular Angular directive. It won't be used in a div or a paragraph or any of that, it will instead be used in an ngTemplate tag. So every time that this template is used by the consumers of it, it will always be applied into an ngtemplate. You can really use that in any case where you need to grab the structure of your content and you need to be able to render that structure multiple times. Or maybe like just either render or not render, which is the case with ng-f.

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