No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 1 commit ahead of learn-co-students:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
js
tests
.gitignore
.learn
CONTRIBUTING.md
LICENSE.md
README.md
index.html
karma.conf.js
package.json

README.md

Making our application minification safe

Objectives

  • Add relevant dependency injection annotations

Instructions

Let's take the code from this repo and change the parameter names. Change $scope and $timeout to random words of your choosing.

Refresh the page - you'll notice we get a load of errors in the console. Not good!!

Now, with our knowledge about the $inject property, add the property to our controller with the correct values for what we want to inject ($scope and $timeout).

Refresh the page again - you'll see that everything is in working order!