app service AuthService Users window function var this updateCurrent f

1
2
3
4
5
6
7
8
9
app.service("AuthService",["Users","$window",function(a,b){
var c=this;
c.updateCurrent=function(){
return c.user=a.current(),
c.user},
c.updateCurrent(),
c.currentUser=function(){return c.user},
c.signOut=function(){b.location="/accounts/logout/"}}
])