A Pen by Secret Sam on CodePen.
Created
June 12, 2014 12:27
-
-
Save anonymous/35636e7c020d50aeab18 to your computer and use it in GitHub Desktop.
A Pen by A Non Ymous.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.17/angular.min.js"></script> | |
<head> | |
<body ng-app> | |
<input type="text" ng-init="vikas='vikas kumar'" ng-model="vikas" ng-blur="vikas='chaturvedi'"> | |
<input type="text" ng-init="vikas='vikas kumar'" ng-model="vikas" ng-blur="alert('vik');"> | |
</body> | |
</html> |
replace alert('vik'); with vikas='blurred and you will see it.
alerts and console.log does not work there ;)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hmmm... alert never fires for me....