Summary
In Angular 2, there are three types of directive: component directive, attribute directive, and structural directive. Throughout this chapter, we got a quick introduction to them and learned how to build simple directives. Directives can do much more, but that's beyond the scope of this book.