Angularjs/Ionic TypeError: Cannot read property 'then' of undefined

All we need is an easy explanation of the problem, so here it is. codes: js: angular.module('starter.services', ['ngResource']) .factory('GetMainMenu',['$http','$q','$cacheFactory',function($http,$q,$cacheFactory) { var methodStr = 'JSONP'; var urlStr = 'http://localhost/bd/wp-admin/admin-ajax.php'; var ptStr…

Continue ReadingAngularjs/Ionic TypeError: Cannot read property 'then' of undefined