toddmotto / ama

Ask me anything!
20 stars 3 forks source link

Angular 1 test directives inner scope #39

Closed sp90 closed 8 years ago

sp90 commented 8 years ago

Hey todd,

How would you test the inner scope of a directive, i can access everything in the green box on the first picture, but not in the red box by using element.isolateScope() see the second picture to see my test as is.

Btw im using Karma, mocha and chai for testing suite

test-directive

screen shot 2016-07-07 at 09 57 39

sp90 commented 8 years ago

I found the bug, it was because i had the compile function on