v0.2.2-rc.1
This commit is contained in:
parent
484a9d6c70
commit
270b20a2b0
110 changed files with 17357 additions and 3070 deletions
|
|
@ -165,7 +165,7 @@ m.request({method: "GET", url: "/user/:id", data: {id: 1}})
|
|||
.then(function(user) {
|
||||
if (!user.isAdmin) throw new Error("Sorry, you don't have permissions")
|
||||
})
|
||||
.then(null, error) //handle the application error: bind to a getter-setter for displaying it on the template
|
||||
.then(null, error) //handle the application error: bind to a getter-setter for diplaying it on the template
|
||||
```
|
||||
|
||||
Note that the default promise exception handling semantics can be modified. See the next section.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue