Skip to content

Instantly share code, notes, and snippets.

@demosifter
Last active October 11, 2016 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save demosifter/04e02edd959363289e77bc7a13632bd4 to your computer and use it in GitHub Desktop.
Save demosifter/04e02edd959363289e77bc7a13632bd4 to your computer and use it in GitHub Desktop.
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