Гадит он в консоль вот этим:
"Error: [$parse:syntax] http://errors.angularjs.org/1.3.14/$parse/syntax?p0=%2C&p1=is%20an%20unexpected%20token&p2=3&p3=id%2C%20item&p4=%2C%20item
M/<@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:6:410
ib.prototype.throwError@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:190:159
ib.prototype.parse@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:189:1
Oe/this.$get</<@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:110:183
g@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:88:262
P@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:67:45
W@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:54:47
ba@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:51:390
ba@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:52:90
F@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:49:434
y@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:61:28
ba@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:51:418
ba@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:52:90
ba@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:52:90
ba@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:52:90
ba@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:52:90
ba@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:52:90
F@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:49:434
tc/d/</<@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:18:4
Pe/this.$get</l.prototype.$eval@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:125:294
Pe/this.$get</l.prototype.$apply@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:126:1
tc/d/<@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:17:477
e@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:36:306
tc/d@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:17:459
tc@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:18:172
@http://localhost:9000/item.js:1:266
a@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:163:399
lf/c@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js:32:349
"
На http://localhost:9000/item.js 266 символ — это 'app'
:
/*jslint browser: true, devel: true */
'use strict';
(function (document, angular) {
var module = angular.module('app', ['common']);
function itemCtrl($scope, cart) {
$scope.cart = cart;
}
module.controller('ItemCtrl', ['$scope', 'cart', itemCtrl]);
angular.element(document).ready(function () {
angular.bootstrap(document, [/* --> */ 'app']);
});
}(document, window.angular));
По ссылке сообщают что-то невнятное:
Syntax Error: Token ',' is an unexpected token at column 3 of the expression [id, item] starting at [, item].
Как разбираться, что не так? Не в этом случае, а вообще.