Bydefault value of textbox is LearnIt which is bind to mouseEnter variable with ng-model directive.On mouse enter event text of textbox changes to visrosoftware because at that time mouseEnter variable value is visrosoftware and on mouse leave it becomes LearnIt.

<!DOCTYPE html> <html xmlns=""> <head> <title></title> <script src=""></script> </head> <body ng-app="app"> <div ng-controller="controllerName"> Mouse Enter: <input type="text" ng-mouseenter="mouseEnter='Visrosoftware'" ng-mouseleave="mouseEnter='LearnIt'" ng-model="mouseEnter" /> </div> <script> var app = angular.module("app", []); app.controller('controllerName', ['$scope', function ($scope) { $scope.mouseEnter = 'LearnIt'; }]); </script> </body> </html>