Integrating the MobileServiceClient with AngularJS
I'm trying to use the WindowsAzure.MobileServiceClient within Angular to do single sign on and CRUD operations. Being an Angular noob, I'm trying to figure out the best way to do this: Instantiate it in the $rootScope in .run and call the functions from there? Create a service or factory and make the instantiation of the MobileServiceClient and all of the function calls in that? Would the currentUser and other information get lost when the service/factory isn't being used? Just spool up MobileServiceClient in the controllers that need it? Seems to me if I do it that way, currentUser info would