- do ngview
- bower install angular-route --save
- we use the name views for the folder in this example but you could call it whatever you want. some people like to organize their code into feature but for this examples we will just toss all views in the views folder stock rails style.
- (only if someone ask) unfortunately you can only set one view with ngView. it gets more complicated if you want multiple
- intro providers
- Providers are objects that provide (create) instances of services and expose configuration APIs that can be used to control the creation and runtime behavior of a service. In case of the $route service, the $routeProvider exposes APIs that allow you to define routes for your application.
- add another page
- add variable urls and display them in page
- intro routeParams
- exersize #1 make a word appear in the template instead of a number
- exersize #2 like mix the directives we know (ng-repeat) and make a links of elements repeat based off of a number from a url