Contents
see List작성일 2016. 09. 09.
scope.testtest = function(data1){
var deferred = $q.defer();
if(data1.childrenCount > 0 || data1.rowCount > 0){
if(data1.type=="sbjt"){
manualAjaxService.getBaseAjax(data1.key,null).then(function(d) {
data1.children = d;
eferred.resolve(data1);
});
}
if(data1.type=="base"){
if(data1.childKey != null && data1.rowCount == 0){
manualAjaxService.getLectAjax(data1.childKey,null).then(function(d) {
data1.children = d;
deferred.resolve(data1);
});
}else{
manualAjaxService.getBaseAjax(data1.highKey,data1.key).then(function(d) {
data1.children = d;
deferred.resolve(data1);
});
}
}
}
return deferred.promise;
}
scope.reloadChildren = function (tarModelBean){
tarModelBean.children = null;
scope.testtest(tarModelBean).then(function (data1) {
data1.thisTreeShow = false;
data1.cLength = data1.children.length;
});
}
javascript
| No | 작성일 | Title |
|---|---|---|
| 1180 | 2016. 11. 28. | [ AngularJS ] angularJs jquery selector |
| 1141 | 2016. 11. 01. | [ AngularJS ] ng-if 의 경우 상위 디렉브를 생성한다. |
| 1139 | 2016. 10. 21. | [ javascript ] 반응형 웹에서 PC 버전보기 구현 |
| 1076 | 2016. 09. 09. | [ AngularJS ] promise then 사용 |
| 1075 | 2016. 09. 07. | [ AngularJS ] 형제 태그 ng-repeat |
| 1074 | 2016. 09. 07. | [ AngularJS ] 의 이벤트 전파 |
| 1041 | 2016. 08. 18. | [ AngularJS ] json parsing spring ajax (and $$hashKey error ) |
| 1040 | 2016. 08. 18. | [ AngularJS ] select option ng-options |
| 1039 | 2016. 08. 18. | [ AngularJS ] ng-repeat 에서 ng-model 사용시 제대로 작동안할때 |
| 1038 | 2016. 08. 16. | [ AngularJS ] 어느 위치에서나 scope 에 접근하기 (전역,지역) |