ng-directive-testing icon indicating copy to clipboard operation
ng-directive-testing copied to clipboard

Using two-way binding on the directive attributes fails in testing

Open jasonpvp opened this issue 12 years ago • 0 comments

This might be a bug in angular itself, but you might know the problem given we used the same setup as you did for tabs directives.

If we use two-way data binding on the pane directive's attributes (name: '=', title: '=') while it still works in the browser, the attributes are not picked up when run in the test environment using Angular Mock. Looking at a break in the link function, the scope is aware of its variables, but has null values for them. Using name: '@', title: '@' works fine in both environments.

Bug in Angular? Angular Mock? Something specific to this configuration?

Thanks!

jasonpvp avatar Apr 04 '14 21:04 jasonpvp