控制器.js
从这里到工厂我想传递一个参数:
getSurveyDataDrag.query(function(data){});
喜欢的东西:
getSurveyDataDrag.query(param: "1", function(){})
服务.js
想要进入工厂内部(如下)参数值 1:
.factory('getSurveyDataDrag', function($resource){
return $resource('/getSurveyData/:flag', {falg: '3'}, {
query: {method:'GET', params:{orderby1:''}, isArray:true}
});
})