In the example, we have two drop-down list and both drop-down list bind with same object array, angular.equals
check if both drop-down list have same selected item then it will return true otherwise false. and it will display different messages based on condition. See the code snippet: