Skip to content

Instantly share code, notes, and snippets.

@jnewman12
Created February 13, 2017 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnewman12/4cd3651f1c50b9c1fbfdd652249df9a7 to your computer and use it in GitHub Desktop.
Save jnewman12/4cd3651f1c50b9c1fbfdd652249df9a7 to your computer and use it in GitHub Desktop.
Angular Services Lab

Angular Services Lab

Objectives

  • Build a simple Todos app in Angular
  • Refactor the app from controller as method to $scope method
  • Use other core services in the app

Directions

This is a pair programming lab.

First, initialize a git repo and build a simple Todos app in Angular using the controller as method. Use the Boats App as a resource! Practice git team workflow and make sure you each make at least a couple of commits!

Then take out a new branch called scope. Do not merge that branch into your master. If you reference the lab later, you will want to still see the controller as method, since that's what you'll be using in other labs and projects.

  • Add the $log service.
  • Use this core services cheatsheet or the Angular Docs to find at least one other service to use. If you find one you like, share it with the rest of the class!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment