Skip to content
Henrik Vendelbo edited this page Apr 30, 2014 · 7 revisions

The page body will have a stateful resolver tracking the state. You can define how the class should reflect the state. Have a look at Resolver("page::state::") to see the current values.

| livepage| | | | | | loading | | | | | | launching | | | | | | launched | |

Reacting to state changes

You can listen to page state changes in general by,

Resolver("page::state").on("change",function(ev) {
    switch(ev.symbol) {
        case "loading": if (ev.value) ...
    }
});

Or you can listen very specifically,

Resolver("page::state.loading").on("false",startMyApp);
Resolver("page::state.livepage").on("false",stopMyApp);

Clone this wiki locally