如何調試角度資源? 如果我做 var thing = service.getRessource();
debbuger;
當我在斷點處,承諾將不會得到解決。 我會做 service.getRessource()
.$promise
.then(function(thing) {
debugger;
// I can accesS the data here
});
IM想使多個連接在同一個表,但不同的別名: Table1
id
1
2
Table2
id pid
1 1
2 1
3 2
4 2
什麼我tryed SELECT
t1.id AS ´t1.id´,
t2_1.id AS ´t2_1.id´,
t2_1.pid AS ´t2_1.pid´,
t2_2.id, AS ´t2_2.id´,