Skip to content

Instantly share code, notes, and snippets.

@SomeKittens

SomeKittens/tmp.html

Last active Aug 29, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.