mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-14 11:22:21 +01:00
28 lines
839 B
JavaScript
28 lines
839 B
JavaScript
(function () {
|
|
'use strict';
|
|
|
|
angular
|
|
.module('forums')
|
|
.controller('ForumsViewController', ForumsViewController);
|
|
|
|
ForumsViewController.$inject = ['$scope', '$state', '$translate', 'Authentication', 'MeanTorrentConfig', 'ForumsService', 'SideOverlay', '$filter', 'NotifycationService',
|
|
'marked', 'ModalConfirmService'];
|
|
|
|
function ForumsViewController($scope, $state, $translate, Authentication, MeanTorrentConfig, ForumsService, SideOverlay, $filter, NotifycationService,
|
|
marked, ModalConfirmService) {
|
|
var vm = this;
|
|
vm.forumsConfig = MeanTorrentConfig.meanTorrentConfig.forumsConfig;
|
|
vm.user = Authentication.user;
|
|
|
|
/**
|
|
* init
|
|
*/
|
|
vm.init = function () {
|
|
ForumsService.query({}, function (items) {
|
|
vm.forums = items;
|
|
});
|
|
};
|
|
|
|
}
|
|
}());
|