0
我想要breezejs的eagarloading擴展函數在查詢breeze的asp.net web api時給我簡單的json對象,以便我可以在我的角度視圖中迭代它。挖的時候像{{p.users.projects.projectname}} ..但結果我得到的是不普通的JSON內心深處項目在angularJS中eagerloading expand()函數
function getUsersPartials() {
return EntityQuery.from('users').expand('projects')
.using(manager).execute()
.to$q(querySucceeded, _queryFailed);
function querySucceeded(data) {
users = data.results;
console.log(users);
log('Retrived [Users Partials] from remote data source ', users.length, true);
return users;
}
}