Skip to content

Instantly share code, notes, and snippets.

@prettycode
Created December 3, 2014 19:06
Show Gist options
  • Save prettycode/cc7710a1547405ac01c6 to your computer and use it in GitHub Desktop.
Save prettycode/cc7710a1547405ac01c6 to your computer and use it in GitHub Desktop.
AngularJS template
<!doctype html>
<html lang="en" ng-app="app">
<head>
<meta charset="UTF-8">
<title>Sandbox</title>
<script src="//code.jquery.com/jquery-2.1.1.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.4/angular.js"></script>
</head>
<body>
<div ng-controller="sandboxCtrl as sandbox">
{{ sandbox.greeting }}
</div>
<script>
angular
.module('app', [])
.controller('sandboxCtrl', [function() {
this.greeting = 'Howdy, partner!';
}])
;
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment