Created
May 16, 2017 07:51
-
-
Save arqex/85059d2ee5b0f1ed9b347511e3a263e0 to your computer and use it in GitHub Desktop.
Message load reactio
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
freezer.on('message:loadAll', () => { | |
// Let the app know we are loading stuff | |
freezer.get().set({status: 'LOADING'}); | |
Ajax.get('/messages').then( messages => { | |
freezer.get.set({ | |
status: 'READY', // We are ready again! | |
messages: messages | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment