mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
docs(guide/providers): fix grammar
This commit is contained in:
committed by
Brian Ford
parent
f165e08b16
commit
cc495e136d
@@ -129,7 +129,7 @@ myApp.factory('apiToken', ['clientId', function apiTokenFactory(clientId) {
|
|||||||
```
|
```
|
||||||
|
|
||||||
In the code above, we see how the `apiToken` service is defined via the Factory recipe that depends
|
In the code above, we see how the `apiToken` service is defined via the Factory recipe that depends
|
||||||
on `clientId` service. The factory service then uses NSA-proof encryption to produce an authentication
|
on the `clientId` service. The factory service then uses NSA-proof encryption to produce an authentication
|
||||||
token.
|
token.
|
||||||
|
|
||||||
Note: It is best practice to name the factory functions as `<serviceId>Factory`
|
Note: It is best practice to name the factory functions as `<serviceId>Factory`
|
||||||
|
|||||||
Reference in New Issue
Block a user