From 46c81617a89d1a242511b0e8e9e44c2dfa1a7f12 Mon Sep 17 00:00:00 2001 From: OldHawk Date: Thu, 4 Jan 2018 15:31:50 +0800 Subject: [PATCH] feat(follow): add follow client controller --- .../follow/follow.client.controller.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/users/client/controllers/follow/follow.client.controller.js diff --git a/modules/users/client/controllers/follow/follow.client.controller.js b/modules/users/client/controllers/follow/follow.client.controller.js new file mode 100644 index 00000000..72596a86 --- /dev/null +++ b/modules/users/client/controllers/follow/follow.client.controller.js @@ -0,0 +1,18 @@ +(function () { + 'use strict'; + + angular + .module('users') + .controller('FollowController', FollowController); + + FollowController.$inject = ['$scope', '$state', '$timeout', '$translate', 'Authentication', 'UsersService', 'ScoreLevelService', 'MeanTorrentConfig', 'ModalConfirmService', + 'NotifycationService']; + + function FollowController($scope, $state, $timeout, $translate, Authentication, UsersService, ScoreLevelService, MeanTorrentConfig, ModalConfirmService, + NotifycationService) { + var vm = this; + vm.user = Authentication.user; + vm.scoreLevelData = ScoreLevelService.getScoreLevelJson(vm.user.score); + + } +}());