Last active
August 29, 2015 14:23
-
-
Save SomeKittens/2d23fd0514cac071e107 to your computer and use it in GitHub Desktop.
Batarang repro
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
<!DOCTYPE html> | |
<html ng-app="app"> | |
<head> | |
<title>asdf</title> | |
</head> | |
<body ng-controller="asdf as A"> | |
{{ A.text }} | |
<button ng-click="A.button();">A button!</button> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script> | |
<script type="text/javascript"> | |
angular.module('app', []) | |
.controller('asdf', function () { | |
var A = this; | |
A.text = 'before'; | |
A.button = function () { | |
A.text = 'after'; | |
}; | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment