switched _.isEqual to angular.equal