title: Angular Factory injection error
body: <p>I'm new to AngularJS and I'm learning Factory/Services. I coded this simple application to pass Fire Factory in Controller, but when I inject the Factory/Service in a controller it throws an error</p>
  
  <p>home.html</p>
  
  <pre><code>&lt;div class="home" ng-controller="HomeCtrl"&gt;
      Home &lt;button ng-class="logut()"&gt;LogOut&lt;/button&gt;
   {{test}}
  &lt;/div&gt;
  </code></pre>
  
  <p>app.js</p>
  
  <pre><code>cheers.factory('Fire',function($scope,$location,$firebaseObject){
    return  {name : 'Pawan Choudhary'};
  
  });
  
  cheers.controller('HomeCtrl', ['$scope','$location','Fire',function ($scope, $location,Fire) {    
      $scope.test = "working!";
  }]);
  </code></pre>
  
  <p>It throws the following error:</p>
  
  <p><a href="https://i.stack.imgur.com/bz7Z3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bz7Z3.png" alt="enter image description here"></a></p>