阅读背景:

单元测试一个AngularJS指令,该指令监视具有隔离范围的属性

来源:互联网 

I have a directive that uses an isolate scope to pass in data to a directive that changes over time. It watches for changes on that value and does some computation on each change. When I try to unit test the directive, I can not get the watch to trigger (trimmed for brevity, but the basic concept is shown below):I have a directive that uses an isolate scope t




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

分享到: