when we over the mouse on text,the color of text changes to red because isShow variable is true.When we leave mouse then text become in original color because value of isShow variable is false.

<!DOCTYPE html> <html xmlns=""> <head> <title></title> <style> .red { color: red; } </style> <script src=""></script> </head> <body ng-app> <div> <p> Mouse Leave on the text</p> <div ng-mouseleave="isShow=false" ng-class="{'red':isShow}" ng-mouseover="isShow=true"> Name:John <span ng-show="isShow">Age:29</span></div> <div ng-mouseleave="Show=false" ng-class="{'red':Show}" ng-mouseover="Show=true"> Name:Clark <span ng-show="Show">Age:26</span></div> </div> </body> </html>