Update route docs to reference state var
This commit is contained in:
parent
0a088f9f5a
commit
30d130cc7a
1 changed files with 1 additions and 1 deletions
|
|
@ -429,7 +429,7 @@ var state = {
|
|||
|
||||
m.route(document.body, "/user/list", {
|
||||
"/user/list": {
|
||||
onmatch: loadUsers,
|
||||
onmatch: state.loadUsers,
|
||||
render: function() {
|
||||
return state.users.length > 0 ? state.users.map(function() {
|
||||
return m("div", user.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue