Last active
October 11, 2016 13:59
-
-
Save demosifter/04e02edd959363289e77bc7a13632bd4 to your computer and use it in GitHub Desktop.
first overview of loadView()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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