Directives have dependencies too, and you can use dependency injection to provide services for your directives to use.