๐ Directive Enhancement
Challenge #3
Information
Directives are a very powerful tool only offered by the Angular framework. You can apply the DRY principle by having shared logic inside a directive and applying it to any component you want.
But the real power is that you can enhance an already-existing directive, which moreover doesnโt belong to you.
Statement
In this exercise, we have a want to display a list of persons. If the list is empty, you must display โ the list is empty !! โ.
Currently, we have:
We want to get rid of the ng-container
by writing:
The goal is to improve the ngFor directive.