Skip to content

Instantly share code, notes, and snippets.

@SomeKittens
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SomeKittens/2d23fd0514cac071e107 to your computer and use it in GitHub Desktop.
Save SomeKittens/2d23fd0514cac071e107 to your computer and use it in GitHub Desktop.
Batarang repro
<!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