Skip to content

Commit 25d207c

Browse files
marcenucvojtajina
authored andcommitted
docs($injector): Correct provider suffix to "Provider"
1 parent 4370d75 commit 25d207c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Injector.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function inferInjectionArgs(fn) {
160160
* @description
161161
*
162162
* Use `$provide` to register new providers with the `$injector`. The providers are the factories for the instance.
163-
* The providers share the same name as the instance they create with the `Provide` suffixed to them.
163+
* The providers share the same name as the instance they create with the `Provider` suffixed to them.
164164
*
165165
* A provider is an object with a `$get()` method. The injector calls the `$get` method to create a new instance of
166166
* a service. The Provider can have additional methods which would allow for configuration of the provider.
@@ -211,7 +211,7 @@ function inferInjectionArgs(fn) {
211211
*
212212
* Register a provider for a service. The providers can be retrieved and can have additional configuration methods.
213213
*
214-
* @param {string} name The name of the instance. NOTE: the provider will be available under `name + 'Provide'` key.
214+
* @param {string} name The name of the instance. NOTE: the provider will be available under `name + 'Provider'` key.
215215
* @param {(Object|function())} provider If the provider is:
216216
*
217217
* - `Object`: then it should have a `$get` method. The `$get` method will be invoked using
@@ -230,7 +230,7 @@ function inferInjectionArgs(fn) {
230230
*
231231
* A short hand for configuring services if only `$get` method is required.
232232
*
233-
* @param {string} name The name of the instance. NOTE: the provider will be available under `name + 'Provide'` key.
233+
* @param {string} name The name of the instance. NOTE: the provider will be available under `name + 'Provider'` key.
234234
* @param {function()} $getFn The $getFn for the instance creation. Internally this is a short hand for
235235
* `$provide.service(name, {$get:$getFn})`.
236236
* @returns {Object} registered provider instance
@@ -245,7 +245,7 @@ function inferInjectionArgs(fn) {
245245
*
246246
* A short hand for configuring services if the `$get` method is a constant.
247247
*
248-
* @param {string} name The name of the instance. NOTE: the provider will be available under `name + 'Provide'` key.
248+
* @param {string} name The name of the instance. NOTE: the provider will be available under `name + 'Provider'` key.
249249
* @param {*} value The value.
250250
* @returns {Object} registered provider instance
251251
*/

0 commit comments

Comments
 (0)