title: How to check If ng-show is true then do something in angularjs
body: <pre><code>&lt;div class ="container" ng-show="mbrscemployee=='yes'"&gt;
      &lt;span class="btn"&gt;click&lt;span&gt;
  &lt;/div&gt;
  &lt;button class="submit"&gt;submit&lt;/button&gt;
  </code></pre>
  
  <p>When someone press <code>button</code> tag, it will check if <code>ng-show</code> is <code>true</code>, then the <code>span</code> will be clicked automatically.</p>