Skip to content

Instantly share code, notes, and snippets.

@chrisbolin
Last active August 29, 2015 14:07
Show Gist options
  • Save chrisbolin/9b12d37215857c9c54e6 to your computer and use it in GitHub Desktop.
Save chrisbolin/9b12d37215857c9c54e6 to your computer and use it in GitHub Desktop.
Stupid Simple Angular Boilerplate
"use strict";
angular
.module('app', [])
.controller('HomeController', HomeController);
function HomeController ($scope) {
$scope.hello = "oh, hi"
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>page title</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.21/angular.min.js"></script>
<script src="app.js"></script>
</head>
<body ng-app="app">
<div ng-controller="HomeController">
{{hello}}
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment