v0.2.2-rc.1

This commit is contained in:
Leo Horie 2015-12-20 09:14:28 -05:00
parent 484a9d6c70
commit 270b20a2b0
110 changed files with 17357 additions and 3070 deletions

View file

@ -108,7 +108,7 @@ In the example below, we bind an error getter-setter to our previous controller
//controller
var controller = function() {
this.error = m.prop("")
this.users = User.listEven().then(function(users) {
if (users.length == 0) m.route("/add");
}, this.error)
@ -121,7 +121,7 @@ If the controller doesn't already have a success callback to run after a request
//controller
var controller = function() {
this.error = m.prop("")
this.users = User.listEven().then(null, this.error)
}
```
@ -145,7 +145,7 @@ var users = m.request({method: "GET", url: "/user"})
//add one more user to the response
return users.concat({name: "Jane"})
})
function log(value) {
console.log(value)
return value