Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit c575a56

Browse files
committed
docs(injector): add docs for $injector.has
1 parent af0eaa3 commit c575a56

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/auto/injector.js

+12
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,18 @@ function annotate(fn) {
151151
* @returns {*} the value returned by the invoked `fn` function.
152152
*/
153153

154+
/**
155+
* @ngdoc method
156+
* @name AUTO.$injector#has
157+
* @methodOf AUTO.$injector
158+
*
159+
* @description
160+
* Allows the user to query if the particular service exist.
161+
*
162+
* @param {string} Name of the service to query.
163+
* @returns {boolean} returns true if injector has given service.
164+
*/
165+
154166
/**
155167
* @ngdoc method
156168
* @name AUTO.$injector#instantiate

0 commit comments

Comments
 (0)