I was sitting on an issue trying to figure it out and then unexpectedly did something that worked! :)
But I have no idea why it is working??
Would appreciate it if someone could explain it to me.
What I wanted to do was: using Id values to determine whether the button should display or not, like :
If Id == 1 button should be shown.
and if Id >= 2 button should be hidden.
and I have another event where I toggle the Id's manually and the button Shows/Hides correctly as I change the values.
HTML
The thing that boggles me is ng-show="S == ph[0].PhaseId" because, in my explanation I said it should be determined with the Id's. and with this coding it does not (in my sense) show where it compares the value to the correct Id's. 
 <button ng-if="ph" type="button" class="col button button-small button-dark" ng-init="showMe(ph);" ng-show="S == ph[0].PhaseId">
Check In
</button>
Javascript
 $scope.showMe = function()
  {  
        $scope.S = true;
  }
 
     
     
     
    