<div class="office-block" ng-if="true">
</div>
myApp.controller("homeCtrl", function($scope, $location){
$scope.saveOffice = function (office) {
$scope.clientsInfo = office;
if (office != ""){
// код который будет изменять ng-if
};
};
});
<div class="office-block" ng-if="isShow">
</div>
myApp.controller("homeCtrl", function($scope, $location){
$scope.isShow = false;
$scope.saveOffice = function (office) {
$scope.clientsInfo = office;
if (office != ""){
// код который будет изменять ng-if
$scope.isShow = !$scope.isShow;
};
};
});