http://jsfiddle.net/natecraft/jtMAq/3/
我不知道为什么会收到此错误。感谢您的帮助。
function accomplishmentController($scope) {
$scope.accomplishments = [{ name: "nate", count: 1 }];
}
最佳答案
在 jsfiddle 左上角的“Frameworks & Extensions”框中将 onLoad 切换为“no-wrap- in head”。
仅供引用...原因是使用 onload 将 angular 放在 $(document).ready(function() {}) 的闭包内;将其关闭会导致各种问题。
关于html - 错误 : Argument 'accomplishmentController' is not a function, 未定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19350474/