title: angularJs ng-click is not working inside the ng-if function
body: <pre><code>&lt;div ng-if="quantity &gt; 0"&gt;
   &lt;button ng-click="quantity = quantity-1"&gt;-&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Above is my code. i dont know why the ng-click doesnt work when it shows up. anyone can give me advise? thanks.</p>