mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
docs(injector): add docs for $injector.has
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user