阅读背景:

单元测试在AngularJS中定义控制器的指令

来源:互联网 

I'm trying to test a directive using Karma and Jasmine that does a couple of things. First being that it uses a templateUrl and second that it defines a controller. This may not be the correct terminology, but it creates a controller in its declaration. The Angular application is set up so that each unit is contained within its own module. For example, all directives are included within module app.directive, all controllers are contained within app.controller, and all services are contained within app.service etc. I'm trying to test a directive using Karma and




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: