Skip to content

Instantly share code, notes, and snippets.

@eibrahim
Created August 6, 2013 19:40
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 eibrahim/6167882 to your computer and use it in GitHub Desktop.
Save eibrahim/6167882 to your computer and use it in GitHub Desktop.
angular.element(document).ready(function() {
var initPromise = Kinvey.init({
appKey : 'XXX-M',
appSecret : 'XXX'
});
initPromise.then(function(activeUser) {
//save user in global variable
window.activeUser = activeUser;
//load my app
angular.bootstrap(document, ['fplabsApp']);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment