Creating a Structural Directive
In this lesson, we'll look at how to create structural directives.
We'll cover the following...
We’ll be creating another directive that will replace the ngFor
directive. The last directive we created was an attribute directive. The ngFor
directive is a structural directive because it adds/removes elements from the document.
Generating a directive
In the command line, run the following command:
ng generate directive loop
...