I am working on AngularJS application i want to compare text and highlight the difference in another div. Below is my code
$scope.left="one two three";
$scope.right="one two four";
<div>{{diff}}</div>
in above context if we compare two scope's left and right we get to know that "three" is extra in $scope.left and "four" is extra in $scope.right . So we need to highlight "three" in red color and "four" in green color so that it will be easy to find the difference.
Is there any plugins or library i can use for this functionality ?