Skip to content

Instantly share code, notes, and snippets.



Last active Aug 29, 2015
What would you like to do?
Batarang repro
<!DOCTYPE html>
<html ng-app="app">
<body ng-controller="asdf as A">
{{ A.text }}
<button ng-click="A.button();">A button!</button>
<script src=""></script>
<script type="text/javascript">
angular.module('app', [])
.controller('asdf', function () {
var A = this;
A.text = 'before';
A.button = function () {
A.text = 'after';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment