mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-06-09 18:20:53 +02:00
feat(forums): add forum view state and html view
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
(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;
|
||||
});
|
||||
};
|
||||
|
||||
}
|
||||
}());
|
||||
Reference in New Issue
Block a user