Lesson 1 of 1
  1. 1
    So far we’ve made AngularJS apps that display data in a single view index.html. But what happens when the app grows and needs to display more information? Stuffing more code to a single view w…
  2. 2
    Great! A gallery of images shows up. How does it work? 1. In app.js inside the app.config() method, we use Angular’s $routeProvider to define the application routes. 2. We used .when() to map t…
  3. 3
    What did we just do? 1. In app.js, we mapped a URL to PhotoController and photo.html. We added a variable part named id to the URL, like this: /photos/:id. 2. In PhotoController, we used A…
  4. 4
    Why are routes useful? Instead of filling a single view with more code than needed, routes let us map URLs to self-contained controllers and templates. Furthermore, now that the app has URLs, users…

What you'll create

Portfolio projects that showcase your new skills

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory