title: How to apply changes in angularjs (ng-show)?
body: <p>I have form</p>
  
  <pre><code>&lt;form ng-controller="SessionController" name="login_form"&gt;
    &lt;div class="hide" ng-show='invalid_credentials'&gt;Invalid email/pass&lt;/div&gt;
    &lt;input type="submit" value="Login" ng-click='login()'&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>utApp.controller('SessionController', ($scope, $cookieStore, ClientService) -&gt;
    $scope.login = -&gt;
      ...
      if something
        $scope.invalid_credentials = true
        return
  </code></pre>
  
  <p>on some conditions <code>$scope.invalid_credentials</code> is getting set to true, but div with error message is not being shown. How to show it?</p>