Skip to content

Instantly share code, notes, and snippets.

@pmanijak
Created September 1, 2012 19:55
Show Gist options
  • Save pmanijak/3585412 to your computer and use it in GitHub Desktop.
Save pmanijak/3585412 to your computer and use it in GitHub Desktop.
Minimal template example with AngularJS
<!doctype html>
<html ng-app="project">
<head>
<script src="http://code.angularjs.org/angular-1.0.1.js"></script>
<script src="project.js"></script>
</head>
<body>
<div ng-view></div>
</body>
angular.module('project',[]).
config(function($routeProvider) {
$routeProvider.
when('/', {controller:MyCtrl, templateUrl:'include.html'});
});
function MyCtrl($scope) {
// No model ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment