diff --git a/docs/web-services.md b/docs/web-services.md index ca790ef5..202ff6f0 100644 --- a/docs/web-services.md +++ b/docs/web-services.md @@ -144,6 +144,11 @@ var users = m.request({method: "GET", url: "/user"}) return users.concat({name: "Jane"}) }) +function log(load) { + console.log(load) + return load +} + //assuming the response contains the following data: `[{name: "John"}, {name: "Mary"}]` //then when resolved (e.g. in a view), the `users` getter-setter will contain a list of users //i.e. users() //[{name: "John"}, {name: "Mary"}, {name: "Jane"}]