Angular for attaching server-rendered data to $rootScope