Course lesson

Implement Structural Directive Data Binding with Context in Angular

Just like in ngFor, you're able to pass in data into your own structural directives. This is done by declaring the variable using a let statement then passing context into the createEmbeddedView call.

Duration
2 min
Access
Pro
Transcript
Needs source

Just like in *ngFor, you're able to pass in data into your own structural directives. This is done by declaring the variable using a let statement then passing context into the createEmbeddedView call.