Angular: Empty Fiddle
http://angularjs.org/
by boneskull
HTML
<script src="http://code.angularjs.org/1.2.0-rc.2/angular.js"></script>
<div ng-controller="MyCtrl">
<input type="text" ng-model="butts"/>
{{butts}}
<button ng-click="displayButts()">magically initialized butts</button>
</div>
JavaScript
var myApp = angular.module('myApp',[]);
function MyCtrl($scope) {
$scope.displayButts = function() {
alert($scope.butts);
};
}