我正在以下錯誤我收到錯誤:[NG:AREQ]參數「nameController」不是一個函數
Error: [ng:areq] Argument 'nameController' is not a function, got undefined http://errors.angularjs.org/1.3.7/ng/areq?p0=nameController&p1=not%20a%20function%2C%20got%20undefined
at REGEX_STRING_REGEXP (angular.js:63)
at assertArg (angular.js:1575)
at assertArgFn (angular.js:1585)
at angular.js:8416
at angular.js:7590
at forEach (angular.js:331)
at nodeLinkFn (angular.js:7577)
at compositeLinkFn (angular.js:7073)
at compositeLinkFn (angular.js:7076)
at publicLinkFn (angular.js:6952)
我試圖改變的角度的版本,以降低一個,並且還使用CDN但它沒有工作。嘗試檢查語法錯誤。
我的函數聲明是否正確?如何解決這個錯誤。
[Plunkr] [1]
http://plnkr.co/edit/HcPXYTb5p6wrsDobdGFg?p=previewenter code here
可能重複(http://stackoverflow.com/questions/26646941/getting-an-error-when-using- ng-controller-in-angularjs-ver-1-3-0) –