I am new to Angular and I am creating my first app right now. I have a factory in place and my controller should be pulling in data from my source, however I keep on getting this error. My factory is called SpreadsheetFactory.
I have the code for my controller below. Any help is appreciated, thanks!
(function () {
angular
.module('beerApp')
.controller('appController', appController, ['$scope', 'SpreadsheetFactory']);
function appController($scope, SpreadsheetFactory) {
SpreadsheetFactory.getData().then( function (data) {
console.log(data)
});
// $scope.brews = [];
return data;
}
})();
SpreadsheetFactoryfactory? :)