Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
first overview of loadView()
// for more info: https://docs.redsift.com/docs/client-code-siftcontroller
loadView(state) {
console.log('counter: loadView', state);
// ...
switch (state.type) {
// ...
case 'summary':
return {
html: 'summary.html',
data: {} //this.getX()
};
default:
console.error('counter: unknown Sift type: ', state.type);
}
}
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment