Unit Testing Directive Scope

Share this video with your friends

Send Tweet

Unit test your AngularJS directives that make changes to $scope as well as their own isolated scopes.

Marian Zburlea
Marian Zburlea
~ 9 years ago

I've used isolateScope() to work: expect(element.isolateScope().clicked).toBeTruthy();