kosmicowboy / angular-make-our-app-di-safe-lab-v-000

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

License:Other


Languages

Language:JavaScript 84.2%Language:HTML 15.8%