Skip to content

Instantly share code, notes, and snippets.

@vseventer
Last active January 2, 2016 18:19
Show Gist options
  • Save vseventer/8342579 to your computer and use it in GitHub Desktop.
Save vseventer/8342579 to your computer and use it in GitHub Desktop.
Initialize Kinvey, then bootstrap AngularJS.
<html>
<script>
var myApp = angular.module('MyApp', ['kinvey']);
var $injector = angular.injector(['ng', 'kinvey']);
$injector.invoke(['$kinvey', function($kinvey) {
$kinvey.init({
appKey : 'App Key',
appSecret : 'App Secret'
}).then(function() {
angular.bootstrap(document, ['MyApp']);
});
}]);
</script>
@dmackerman
Copy link

Can't get this working. I'm including this before my </body> tag, after I load all of my scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment