1. create a directive with $watch to keep checking
xxxXXXApp.directive("ngDivload", function () {
return function (scope, element, attrs) {
scope.$watch("xxxResultModel.Header", function (obj) {
var value = obj || null;
if (value){
$('.tgXXX .searchCount').show();
$('.searchResult').show();
}
});
};
});
xxxResultModel.Header is the $scope object being assigned at the end of the 2nd controller operation
2. Add this directive to the template for the 2nd controller
<div ng-cloak class="ng-cloak searchResult" ng-Divload="" style="display:none;">
No comments:
Post a Comment