I have two objects (dates)
{{vm.currentDate|date:'mediumDate'}} and {{vm.anotherDate|date:'mediumDate'}}
How to equal (if are the same) and value this operation sent to directive in button
<button type="submit" ng-show="VALUE_FROM_OPERATION"></button>