All Questions
Tagged with angularjs patterns-and-practices
1 question
36
votes
4
answers
52k
views
Should angularjs directive directly interact with services or is it considered an anti-pattern?
Which one is considered better:
having a directive that interacts with services directly
or
having a directive that exposes certain hooks to which controller may bind behaviour (involving services)?