title: AngularJS : Use factory inside a controller
body: <p>I use angularjs seed and trying to write a simple factory and insert it in to the controller. </p>
  
  <p>I have a Row factory definition</p>
  
  <pre><code>angular.module('myApp')
  .factory('Row', [ function () {
   return 'some string';
   ); 
  }])
  </code></pre>
  
  <p>inside my view1 controller I have </p>
  
  <pre><code>'use strict';
  
  angular.module('myApp.view1', ['ngRoute'])
  
  .config(['$routeProvider', function($routeProvider) {
  $routeProvider.when('/view1', {
  templateUrl: 'view1/view1.html',
  controller: 'View1Ctrl'
  });
  }])
  
  .controller('View1Ctrl', ['$scope', 'Row', function($scope, Row) {
  }]);
  </code></pre>
  
  <p>And I am getting an error it's not finding the Row factory. </p>