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

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -