Chapter 8 ■ Organizing Views
A page listing various Angular modules appears. You want to download the angular-route.js file (or the
minified version, angular-route.min.js, if you prefer) into your angularjs folder.
In Listing 8-1, you can see an example of how I added a script element for the angular-route.js file within a new
HTML file.
Listing 8-1. Adding a Reference to the ngRoute Module
<!DOCTYPE html>
That’s it—that’s how you install the Angular routing system. Now let’s start looking at what you can do with it.
■ Note why is ngRoute defined in an optional module? not every developer will want to use ngRoute, perhaps
preferring to use another route system or no route system at all. in such cases, there is no point forcing users to
download ngRoute if it is not going to be used.
Figure 8-1. Downloading additional modules