Lesson 1 of 1
  1. 1
    So far we’ve made AngularJS apps by adding data to a controller, and then displaying it in a view. But what happens when the data contains hundreds of items, or if it’s constantly changing like we…
  2. 2
    Well done! The city_name now shows up in the view. How does it work? 1. First in js/services/forecast.js, we made a new service. We used app.factory to create a new service named forecast 2. …
  3. 3
    Why are services useful? Instead of filling the controller with code to fetch weather data from a server, it’s better to move this independent logic into a service so that it can be reused by othe…

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