Last active
January 2, 2016 18:19
-
-
Save vseventer/8342579 to your computer and use it in GitHub Desktop.
Initialize Kinvey, then bootstrap AngularJS.
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
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can't get this working. I'm including this before my
</body>
tag, after I load all of my scripts.