Outline

Building a Structural Directive

Now it's time to dig in and build our own structural directive. In this example we build a directive that is similar to the built-in NgIf structural directive, but when the expression evaluations to false we'll fade-out the host element.

If you would like, follow along and try building the AppFadeOut directive: Exercise

And, you can study the completed solution

 

I finished! On to the next chapter