aboutsummaryrefslogtreecommitdiffstats
path: root/src/Injector.js
diff options
context:
space:
mode:
authorMarcello Nuccio2012-02-13 12:18:03 +0100
committerVojta Jina2012-02-29 15:46:55 -0800
commit25d207c48c648bcf09ebdf09f39277850017c228 (patch)
tree17814e46ecded7b77a5ca426732e06361b6411ce /src/Injector.js
parent4370d756e4e758f0e95e83390f7555cb9f48e6fe (diff)
downloadangular.js-25d207c48c648bcf09ebdf09f39277850017c228.tar.bz2
docs($injector): Correct provider suffix to "Provider"
Diffstat (limited to 'src/Injector.js')
-rw-r--r--src/Injector.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Injector.js b/src/Injector.js
index c45e7dd0..a05a12ea 100644
--- a/src/Injector.js
+++ b/src/Injector.js
@@ -160,7 +160,7 @@ function inferInjectionArgs(fn) {
* @description
*
* Use `$provide` to register new providers with the `$injector`. The providers are the factories for the instance.
- * The providers share the same name as the instance they create with the `Provide` suffixed to them.
+ * The providers share the same name as the instance they create with the `Provider` suffixed to them.
*
* A provider is an object with a `$get()` method. The injector calls the `$get` method to create a new instance of
* a service. The Provider can have additional methods which would allow for configuration of the provider.
@@ -211,7 +211,7 @@ function inferInjectionArgs(fn) {
*
* Register a provider for a service. The providers can be retrieved and can have additional configuration methods.
*
- * @param {string} name The name of the instance. NOTE: the provider will be available under `name + 'Provide'` key.
+ * @param {string} name The name of the instance. NOTE: the provider will be available under `name + 'Provider'` key.
* @param {(Object|function())} provider If the provider is:
*
* - `Object`: then it should have a `$get` method. The `$get` method will be invoked using
@@ -230,7 +230,7 @@ function inferInjectionArgs(fn) {
*
* A short hand for configuring services if only `$get` method is required.
*
- * @param {string} name The name of the instance. NOTE: the provider will be available under `name + 'Provide'` key.
+ * @param {string} name The name of the instance. NOTE: the provider will be available under `name + 'Provider'` key.
* @param {function()} $getFn The $getFn for the instance creation. Internally this is a short hand for
* `$provide.service(name, {$get:$getFn})`.
* @returns {Object} registered provider instance
@@ -245,7 +245,7 @@ function inferInjectionArgs(fn) {
*
* A short hand for configuring services if the `$get` method is a constant.
*
- * @param {string} name The name of the instance. NOTE: the provider will be available under `name + 'Provide'` key.
+ * @param {string} name The name of the instance. NOTE: the provider will be available under `name + 'Provider'` key.
* @param {*} value The value.
* @returns {Object} registered provider instance
*/