Equivalent of angular.equals in angular2
问题 I am working on migration of angular 1 project to angular 2 . In angular 1 project I was using angular.equals for object comparison angular.equals($ctrl.obj1, $ctrl.newObj); , I searched online for equivalent method in angular 2 but could not find any matching result. 回答1: @Günter Yes you are right there is no equivalent in angular2 . While searching more I found third party library loadash which will do same job as angular.equals and syntex is same as angular one and this library solves my