Помогите новичку что делаю не так .объясните почему у меня выскакивает эта ошибка и как ее побороть.
[JS]
Error: [ng:areq] [url]http://errors.angularjs.org/1.3.2/ng/areq?p0=TodoCtrl&p1=not%20a%20function%2C%20got%20undefined[/url]
at Error (native)
at [url]http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js:6:416[/url]
at Nb ([url]http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js:19:417[/url])
at ob ([url]http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js:20:1[/url])
at $get ([url]http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js:75:177[/url])
at [url]http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js:57:112[/url]
at r ([url]http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js:7:408[/url])
at I ([url]http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js:56:496[/url])
at g ([url]http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js:51:299[/url])
at g ([url]http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js:51:316[/url])
[/JS]
Main.php:
<!DOCTYPE html>
<html ng-app>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.2/angular-route.js"></script>
<script src="<?= Yii::app()->request->baseUrl; ?>/js/app.js"></script>
<!-- <script src="<?= Yii::app()->request->baseUrl; ?>/js/services/images.js"></script> -->
<title>AngularJS Authentication App</title>
</head>
<div ng-controller="TodoCtrl"></div>
<body >
fff
<div class="container" id="page">
<?= $content; ?>
<ng-view></ng-view>
</div>
</body>
</html>
app.js
angular.module('myApp', []);
function TodoCtrl($scope) {
$scope.todos = [
{text: 'learn angular', done: true},
{text: 'build an angular app', done: false}];
}
angular.module('myApp').config(['$controllerProvider', function($controllerProvider) {
// this option might be handy for migrating old apps, but please don't use it
// in new ones!
$controllerProvider.allowGlobals();
}]);
спасибо