Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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)?
WTK's user avatar
  • 471