Created
October 18, 2016 20:10
-
-
Save hadijaveed/a9ea60064b112120ac82b61df26edc7d to your computer and use it in GitHub Desktop.
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
ReactiveHbs.promises({ | |
getAllUsers() { | |
return $.get('https://api.github.com/users'); | |
}, | |
}); | |
// usage | |
ReactiveHbs.executePromise('getAllUsers', (err, data) => { | |
if ( !err ) console.log(data); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment