mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-13 19:02:23 +01:00
23 lines
632 B
JavaScript
23 lines
632 B
JavaScript
(function () {
|
|
'use strict';
|
|
|
|
angular
|
|
.module('forums')
|
|
.controller('ForumsController', ForumsController);
|
|
|
|
ForumsController.$inject = ['$scope', '$translate', 'Authentication', 'MeanTorrentConfig', 'ForumsAdminService'];
|
|
|
|
function ForumsController($scope, $translate, Authentication, MeanTorrentConfig, ForumsAdminService) {
|
|
var vm = this;
|
|
vm.formsConfig = MeanTorrentConfig.meanTorrentConfig.forumsConfig;
|
|
vm.user = Authentication.user;
|
|
|
|
vm.init = function () {
|
|
ForumsAdminService.query({}, function (items) {
|
|
vm.forums = items;
|
|
console.log(items);
|
|
});
|
|
};
|
|
}
|
|
}());
|