Files
meanTorrent/modules/traces/client/controllers/traces.client.controller.js
2017-06-23 18:18:49 +08:00

24 lines
774 B
JavaScript

(function () {
'use strict';
angular
.module('traces')
.controller('TracesController', TracesController);
TracesController.$inject = ['$scope', '$state', '$translate', '$timeout', 'Authentication', '$filter', 'NotifycationService', '$stateParams', 'MessagesService',
'MeanTorrentConfig', 'ModalConfirmService', 'marked', '$rootScope'];
function TracesController($scope, $state, $translate, $timeout, Authentication, $filter, NotifycationService, $stateParams, MessagesService,
MeanTorrentConfig, ModalConfirmService, marked, $rootScope) {
var vm = this;
/**
* If user is not signed in then redirect back home
*/
if (!Authentication.user) {
$state.go('authentication.signin');
}
}
}());