Skip to content

Commit

Permalink
Merge pull request #9134 from ember-cli/docs/locals-hook
Browse files Browse the repository at this point in the history
[DOC] Update locals hook example
  • Loading branch information
locks committed Apr 4, 2020
2 parents 172e2b4 + 9af5fb1 commit be13770
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/models/blueprint.js
Expand Up @@ -526,7 +526,7 @@ let Blueprint = CoreObject.extend({
When the following is called on the command line:
```sh
ember generate controller foo --type=array --dry-run
ember generate controller foo --type=array --dry-run isAdmin:true
```
The object passed to `locals` looks like this:
Expand All @@ -536,10 +536,12 @@ let Blueprint = CoreObject.extend({
entity: {
name: 'foo',
options: {
type: 'array'
isAdmin: true
}
},
dryRun: true
type: "array"
// more keys
}
```
Expand Down

0 comments on commit be13770

Please sign in to comment.