feat(forums): add forum view state and html view

This commit is contained in:
OldHawk
2017-07-06 15:39:51 +08:00
parent 068f50535e
commit be90e55863
6 changed files with 71 additions and 4 deletions

View File

@@ -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;
});
};
}
}());