Pro Angular 6 pp 339-364 | Cite as

Creating Attribute Directives

  • Adam Freeman


In this chapter, I describe how custom directives can be used to supplement the functionality provided by the built-in ones provided by Angular. The focus of this chapter is attribute directives, which are the simplest type that can be created and that change the appearance or behavior of a single element. In Chapter  16, I explain how to create structural directives, which are used to change the layout of the HTML document. Components are also a type of directive, and I explain how they work in Chapter  17.

Copyright information

© Adam Freeman 2018

Authors and Affiliations

  • Adam Freeman
    • 1
  1. 1.LondonUK

Personalised recommendations