All Questions
1 question
2
votes
1
answer
2k
views
How to spyOn a service function within the link of a directive?
I have a directive that uses a service function like so:
angular.module('testModule',
['serviceBeingUsed'])
.directive('testDirective', function(serviceBeingUsed) {
return {
restrict: 'AE'...