Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
controllerAs如果未指定 Angular 指令定义的默认值是什么?
controllerAs
controllerAs单元测试描述了指令定义 object(ddo) 中的默认行为,如下所示:
it('should throw noident when missing controller identifier') it('should throw noident when missing controllerAs directive property')
参考
AngularJS 来源:compileSpec.js
AngularJS:控制器作为......和闭包