From c575a56fc5c6abcb8442398b53ddd7ea2433b785 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Mon, 6 May 2013 14:52:58 -0700 Subject: docs(injector): add docs for $injector.has --- src/auto/injector.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/auto/injector.js') diff --git a/src/auto/injector.js b/src/auto/injector.js index 6b2865ef..9c492dc5 100644 --- a/src/auto/injector.js +++ b/src/auto/injector.js @@ -151,6 +151,18 @@ function annotate(fn) { * @returns {*} the value returned by the invoked `fn` function. */ +/** + * @ngdoc method + * @name AUTO.$injector#has + * @methodOf AUTO.$injector + * + * @description + * Allows the user to query if the particular service exist. + * + * @param {string} Name of the service to query. + * @returns {boolean} returns true if injector has given service. + */ + /** * @ngdoc method * @name AUTO.$injector#instantiate -- cgit v1.2.3