Note: this guide is targeted towards developers who are already familiar with AngularJS basics. If you're just getting started, we recommend the tutorial first. If you're looking for the directives API, we recently moved it to $compile.
This document explains when you'd want to create your own directives in your AngularJS app, and how to implement them.
What are Directives?
At a high level, directives are markers on a DOM element (such as an attribute, element name, comment or CSS class) t