https://github.com/devinmcinnis/todo-angular
angular.module('myApp', [ 'myApp.controllers' ]);
angular.module('myApp.controllers', []) .controller('TodoController', function($scope){ $scope.title = 'Hello World'; });
angular.module('myApp.controllers', [])
.controller('TodoController', function($scope){
$scope.title = 'Hello World';
});
<body ng-app='myApp'> <div ng-controller='TodoController'> <h1> {{title}} </h1> </div></div>
<body ng-app='myApp'>
<div ng-controller='TodoController'>
<h1> {{title}} </h1>
</div>
angular.module('myApp', [ 'ngRoute', 'myApp.controllers' ]).config(function($routeProvider) { $routeProvider.when('/todo', { templateUrl: 'partials/todo.html', controller: 'TodoController' }); $routeProvider.otherwise({redirectTo: '/todo'}); }]);
angular.module('myApp', [ 'ngRoute',
'myApp.controllers' ])
.config(function($routeProvider) { $routeProvider.when('/todo', {
templateUrl: 'partials/todo.html',
controller: 'TodoController'
}); $routeProvider.otherwise({redirectTo: '/todo'}); }]);
https://slid.es/axiomzen/angularjs-primer
By Axiom Zen
CodeCode March 1st: hands-on introductory workshop on Angular
Axiom Zen is an idea catalyst; we launch iconic products, brands, and companies working in partnership with the world's leading innovators.