This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Description
When writing simple controller function I get error in v1.3.0-beta
See my example: http://jsfiddle.net/patriklindstrom/LGhEJ/
If you change the external resource in jsfiddle from beta 1.3.0-beta.16 to previous version like //ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.min.js it starts to work both in my own code and in my forked AngularJS jsfiddle todo example. Therefore imho i suspekt that there is a bug. Could be it is so simple without any module and therefore overlooked.
In my own code the error is shown as where sarcCntrl is my controller:
Error: [ng:areq] Argument 'sarcCntrl' is not a function, got undefined
http://errors.angularjs.org/1.3.0-beta.16/ng/areq?p0=sarcCntrl&p1=not%20a%20function%2C%20got%20undefined
at http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.16/angular.js:78:12
at assertArg (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.16/angular.js:1570:11)
at assertArgFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.16/angular.js:1580:3)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.16/angular.js:7448:9
at http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.16/angular.js:6791:34
at forEach (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.16/angular.js:334:20)
at nodeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.16/angular.js:6778:11)
at compositeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.16/angular.js:6216:13)
at compositeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.16/angular.js:6219:13)
at compositeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.16/angular.js:6219:13)