为什么下面的代码没有捕获抛出的异常?$http.get(null) // <- this throws a fit console.log(e); // <- thisis not being triggered
错误:$http:badreq Http请求配置url必须是字符串或$sce受信任的对象。
我正在将我的Rails API与我的AngularJS应用程序结合起来。直到我必须在GET请求中发送参数之前,一切都很正常。params.require(:cat).permit(:color)然后从角度 cat: { } $http.get这时,params散列看起来像一个字符串JSON
Started GET "some