I have a userService that deals with all user functionality. In order to populate it with data my _Layout.cshtml creates a global currentUser variable which I then want to put into my userService. How can I do this during bootstrap?
It feels like I should be able to do something like this:
var myApp = angular.module('myApp', [...]);
var userService = myApp.create("userService");
userService.setUser(currentUser);