javascript - How equal two objects and return this value to ng-show -
i have 2 objects (dates)
{{vm.currentdate|date:'mediumdate'}} , {{vm.anotherdate|date:'mediumdate'}}
how equal (if same) , value operation sent directive in button
<button type="submit" ng-show="value_from_operation"></button>
you check if equal this:
+currentdate === +anotherdate
Comments
Post a Comment