title: $resource error even after adding dependency to ngResource
body: <p>I am trying to display data in an angular app using $resource, from mongolab. I added dependency to ngResource in the module. Still it says Unknown provider. What is the missing point here?</p>
  
  <blockquote>
    <p>'$resource is not defined'</p>
  </blockquote>
  
  <p>Note: When my factory name was not correct, I was getting error: Unknown provider: employeesProvider &lt;- employees</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  
  &lt;script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.js"&gt;&lt;/script&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular-resource.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  
   //defining module
   var app = angular.module('myApp', ['ngResource']);
  
   //defining factory
   app.factory('employees', function () {
  
      return $resource('https://api.mlab.com/api/1/databases/humanresource/collections/Employees',
                      {apiKey: 'removedmykeyforpostinginSO'}
                    );
   });
  
   //defining controller
   app.controller('myController', function ($scope, employees) 
   {
      $scope.countries = employees.query();
   });  
  
  &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body ng-app="myApp"&gt;
       &lt;div ng-controller="myController"&gt;
      &lt;ul&gt;
          &lt;li ng-repeat = "objCountry in countries" &gt;
              {{objCountry.name}}
  
          &lt;/li&gt;
      &lt;/ul&gt;
       &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>JSON from Mongolab</strong></p>
  
  <pre><code>[ { "_id" : { "$oid" : "57044f95e4b0427faa38585f"} , "name" : "Lijo" , "age" : "30"} ]
  </code></pre>