Allow Users to Configure Angular Content Directives

Share this video with your friends

Send Tweet

We’re getting into Inception territory here. The user may want to override part of how the UI component Content Directives are modifying their provided UI. So, we’ll let them configure the content directives. The functionality of Content Directives is comparable to React’s Prop Getter pattern.

ganqqwerty
ganqqwerty
~ 4 years ago

02:09 it seems to me that each time we introduce the input that has the same name as the directive name, we are creating a source of fragility during the refactor phase. Imagine that I decided to rename my directive. It would be pretty common to forget to rename the input as well.