In angularjs, given a module, how do you check if a directive/controller exists given a module.
I have a module and I want to know if some particular directives have bee
Use this code to check if a service exists.
$injector.has('myServiceName')
To check if a directive exists, you must add a Directive suffix after the directive name:
Directive
$injector.has('myDirectiveNameDirective')