Created
December 3, 2014 19:06
-
-
Save prettycode/cc7710a1547405ac01c6 to your computer and use it in GitHub Desktop.
AngularJS template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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