2015-05-29 92 views
1

我想利用資源的方法有多種parameters.I試過這樣的,Angularjs資源多參數

var mytest = $resource('/localhost/:id&:test', {id: '@id',test:'@test'}); 

mytest.getCached({id:'1',test:'test'}, function() { .. }) 

但它並不work.Is '/本地主機/:ID &:測試'定義是否正確?或者是否有任何錯誤的部分?

回答

0

其實我有這樣的錯誤更早,我解決了以「#」你可以試試,

var mytest = $resource('/localhost/#:id&:test', {id: '@id',test:'@test'}); 
+0

它不工作:( – user4773604