The essence of the problem is that there is an object in the controller, a normal list of properties. By clicking on the client’s side, the property of the object is removed and, when the object is completely empty, a block should be hidden according to the ng-if directive.
I try to convey this:
$scope.hidden = !!Object.keys(obj).length; And, accordingly, on the html side:
ng-if="$ctrl.hidden"; It does not work, and there are no errors in the console.
$ctrlcome from? You havehidden- this property is directly$scope. - Yaant