I've read that a good way to initialize Parse is when the module is created. I made the following code, however Parse does not seem to be initializing when I run my program. Am I missing something basic about setting up run functions on a module?
Here is the code:
var myApp = angular.module('myApp', []);
myApp.config(function ($routeProvider, $locationProvider) {
})
.run(function($rootScope) {
Parse.initialize("myKey", "myKey");
$rootScope.sessionUser = Parse.User.current();
});