I'm seeing a tutorial, and at a certain point it shows the code saying that the most correct is to use ng-hide in the DIV tag and below in the BUTTON tag the same used ng-show. When should I use each of them?
<body ng-controller="StoreController as store">
<div ng-show="!store.product.soldOut">
<h1> {{store.product.name}} </h1>
<h2> ${{store.product.price}} </h2>
<p> {{store.product.description}} </p>
<button ng-show="store.product.canPurchase">Add to Cart </button>
</div>
<script type="text/javascript" src="angular.min.js"></script>
<script type="text/javascript" src="app.js"></script>