overleaf/services/web/public/coffee/ide/chat/controllers/ChatMessageController.coffee

7 lines
No EOL
183 B
CoffeeScript

define [
"base"
], (App) ->
App.controller "ChatMessageController", ["$scope", "ide", ($scope, ide) ->
$scope.hue = (user) ->
ide.onlineUsersManager.getHueForUserId(user.id)
]