The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Unit Testing a Directive

Unit Testing a Directive

2:14
In this lesson you will unit test a simple AngularJS directive
Watch this lesson now
Avatar
egghead.io

In this lesson you will unit test a simple AngularJS directive

Avatar
Joseph

Do you have the source for this? The example doesn't work

In reply to egghead.io
Avatar
John

https://docs.angularjs.org/api/ng/function/angular.element

The api changed so that you now need to use isolateScope() to access an isolated scope of a directive.

In reply to Joseph
Avatar
Ken

Any chance you could update this so that it works? It would be good but there are definitely pieces missing as well as you aren't showing your karma.conf.js which would be beneficial.

In reply to John
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?