I am looking to compare two dates in ng-if this is what my jade file looks like.
html :
<button ng-if="{{product.experationDate}} < {{CurrentDate}}" type="button>
// do somthing
</button>
javascript :
$scope.CurrentDate = new Date();
and : date_expiration: {type: Date}
but it not work ! any help will be appreciated. thanks
ng-if="(product.experationDate < CurrentDate)"instead