I use angularjs seed and trying to write a simple factory and insert it in to the controller.
I have a Row factory definition
angular.module('myApp')
.factory('Row', [ function () {
return 'some string';
);
}])
inside my view1 controller I have
'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) {
}]);
And I am getting an error it's not finding the Row factory.