In the following recipe, we'll see how to install a directive into an AngularJS application using the Bower dependency manager. Throughout our book, there are several alternatives to create and customize directives; we can use third-party directives.
In the next example, we'll use the
ng-map directive. As the name says, it is a directive for creating and manipulating maps.
You can find more information on ng-map at http://ngmap.github.io/.
We will use the same code that we used in the previous example as a starting point. In addition, it is recommended that you already have Bower installed on your system. If you don't have or know Bower, don't worry, we will demonstrate how to install it manually.