Abstract
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.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Adam Freeman
About this chapter
Cite this chapter
Freeman, A. (2018). Creating Attribute Directives. In: Pro Angular 6. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3649-9_15
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3649-9_15
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3648-2
Online ISBN: 978-1-4842-3649-9
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books