Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Minimal template example with AngularJS
<!doctype html>
<html ng-app="project">
<script src=""></script>
<script src="project.js"></script>
<div ng-view></div>
config(function($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