app.service('dataService', [function ($http,$q) {
var deferred = $q.defer();
$http.get(url).then(function(data){
deferred.resolve(data);
});
this.getData = function(){
return deferred.promise;
}
}]);
慕虎7371278
相关分类