-
-
Save egel/5a533305b555640288a2 to your computer and use it in GitHub Desktop.
Minimal template example with AngularJS
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
:-) |
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 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> |
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
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