Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Commit

Permalink
fix(docs): fix section explaining generating services
Browse files Browse the repository at this point in the history
  • Loading branch information
btford committed Jul 18, 2013
1 parent 8404c06 commit 8b4787c
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions readme.md
Expand Up @@ -145,27 +145,12 @@ yo angular:service myService

Produces `app/scripts/services/myService.js`:
```javascript
angular.module('myMod').factory('myService', function () {
angular.module('myMod').service('myService', function () {
// ...
});
```

#### Options
There are options for each of the methods for registering services. For more on using these services, see the [module API AngularJS documentation](http://docs.angularjs.org/api/angular.Module).

##### Factory
Invoked with `--factory`

This is the default method when creating a service. Running `yo angular:service myService --factory` is the same as running `yo angular:service myService`

##### Service
Invoked with `--service`

##### Value
Invoked with `--value`

##### Constant
Invoked with `--constant`
You can also do `yo angular:factory`, `yo angular:provider`, `yo angular:value`, and `yo angular:constant` for other types of services.

## Options
In general, these options can be applied to any generator, though they only affect generators that produce scripts.
Expand Down

0 comments on commit 8b4787c

Please sign in to comment.