To make your single-page application function like a multi-page website, you will need to use the deep linking function in AngularJS. To do this, you will use the $routeProvider service, which turns on deep linking and allows you to create sub-templates. Learn more about working with the $routeProvider service in AngularJS by watching this tutorial video and familiarizing yourself with this helpful technique.
I'm also going to need to link to it from the index that html document.…So right here above controllers, I can add a link to my app js file.…So I'm going to go ahead and save that.…And what we need to do now is to…define the controller that's going to take care of the application.…We remove that from the controllers.js file.…So we're going to put it now in the apps.js document.…We create a variable.…We'll call it myApp and we're going to set…
- What is AngularJS?
- Working with complex models
- Using a the $http service to read a JSON file
- Binding data
- Dividing your app into partials
- Creating a details template
- Using AngularJS animation events
Skill Level Intermediate
Q: This course was updated on 12/11/2015. What changed?
A: We updated two movies ("Creating our details template" and "Adding navigation to our details page") to reflect changes to AngularJS 1.4.8 and the 1.5 beta.