Skip to content

Commit bffa2f5

Browse files
committed
Merge pull request #87 from vitorarjol/dev
Fixing small typos on the Transition docs.
2 parents 5ce3b9f + 3872bf5 commit bffa2f5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/pipeline/data.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ route: {
8484
data (transition) {
8585
var userId = transition.to.params.userId
8686
return Promise.all([
87-
userService.get(id),
88-
postsService.getForUser(id)
87+
userService.get(userId),
88+
postsService.getForUser(userId)
8989
]).then(function (data) {
9090
return {
9191
user: data[0],

docs/pipeline/hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ All transition hooks are considered asynchronous by default. In order to signal
6161

6262
### Returning Promise in Hooks
6363

64-
When you return a Promise in a transition hook, `transition.next` will be called for you when the Primise resolves. If the Promise is rejected during validation phase, it will call `transition.abort`; if it is rejected during activation phase, it will call `transition.next`.
64+
When you return a Promise in a transition hook, `transition.next` will be called for you when the Promise resolves. If the Promise is rejected during validation phase, it will call `transition.abort`; if it is rejected during activation phase, it will call `transition.next`.
6565

6666
For validation hooks (`canActivate` and `canDeactivate`), if the Promise's resolved value is falsy, it will also abort the transition.
6767

@@ -96,7 +96,7 @@ We are asynchronously fetching data in the `activate` hook here just for the sak
9696

9797
``` js
9898
route: {
99-
acitvate ({ next }) {
99+
activate ({ next }) {
100100
// when done:
101101
next()
102102
}

0 commit comments

Comments
 (0)