On Github the-control-group / angular-is-badass-presentation
app/ ├── index.html ├── angular.js └── app.js
More structure examples here!
Touch on different structures for larger apps.<html ng-app="badassApp"> <head> <title>My badass angular app</title> </head> <body ng-controller="mainCtl"> <!-- angular.js should go here --> </body> </html>angular is built on the premise that html should play a bigger part in a dynamic app. angular does this by adding custom elements and attributes * and declarative two way data binding!
angular.module('badassApp', []) .controller('mainCtl', function($scope){ $scope.awesomeThings = [ 'angular', 'thecontrolgroup', 'the frontend team' ]; });