1
如何調試角度資源?調試角度資源承諾
如果我做
var thing = service.getRessource();
debbuger;
當我在斷點處,承諾將不會得到解決。
我會做
service.getRessource()
.$promise
.then(function(thing) {
debugger;
// I can accesS the data here
});
有沒有辦法來調試,而不在第二個例子中改寫像我的代碼解析的承諾?