One of the most powerful features of AngularJS is the capability to create your own custom directives. Implementing a custom directive in code is simple using the directive()
method on a Module
object. However, directives can also be very complex because of the myriad ways they can be implemented. This chapter has given you a small taste of what can be done with custom directives in AngularJS. I would recommend spending some time playing around with the examples and writing some of your own to familiarize yourself as much as possible with how they work.