docs(injector): add docs for $injector.has

This commit is contained in:
Misko Hevery 2013-05-06 14:52:58 -07:00
parent af0eaa3047
commit c575a56fc5

View file

@ -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