One of the functionalities we need to implement is hiding a button based on a specific action. Specifically, when viewing the Organization units record in the table grid, we want to hide the locate button.
The grid displays records of cities and organization units, but we only want the locate button to show up when viewing cities and not organization units.
$scope.showOrganizationunit=function(){
// Display organization unit data
// Hide button (How can we achieve this?)
// Can we use ng-hide here for the button?
}