标签: angularjs angularjs-directive default unspecified-behavior
如果未指定Angular指令定义,controllerAs的默认值是什么?
controllerAs
答案 0 :(得分:1)
单元测试在指令定义对象(ddo)中描述controllerAs的默认行为:
it('should throw noident when missing controller identifier') it('should throw noident when missing controllerAs directive property')
<强>参考强>
AngularJS Source: compileSpec.js
AngularJS: Controller as ... and closures