The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Assign a Structual Directive a Dynamic Context in Angular

Assign a Structual Directive a Dynamic Context in Angular

3:01
Just like passing in an array to `*ngFor`, you can pass in any value into your structural directive so that it can render templates based on those values. It's crucial to understand how the `*directive` syntax expands into a `<template>` and adds a custom `@Input` based on the syntax you use so that you can use your own data.
Watch this lesson now
Avatar
egghead.io

Just like passing in an array to *ngFor, you can pass in any value into your structural directive so that it can render templates based on those values. It's crucial to understand how the *directive syntax expands into a <template> and adds a custom @Input based on the syntax you use so that you can use your own data.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?