taiga-front/app/modules/profile/profile-bar/profile-bar.controller.coffee

14 lines
333 B
CoffeeScript

class ProfileBarController
@.$inject = [
"tgUserService"
]
constructor: (@userService) ->
@.loadStats()
loadStats: () ->
return @userService.getStats(@.user.get("id")).then (stats) =>
@.stats = stats
angular.module("taigaProfile").controller("ProfileBar", ProfileBarController)