blob: 203e9ff92dca70b18b7fe42d02fcfd8bb7b79a74 [file] [log] [blame]
'use strict';
angular.module('xos.subscribers', [
'ngResource',
'ngCookies',
'ui.router',
'xos.helpers'
])
.config(($stateProvider) => {
$stateProvider
.state('user-list', {
url: '/',
template: '<subscribers-list></subscribers-list>'
});
})
.config(function($httpProvider){
$httpProvider.interceptors.push('NoHyperlinks');
})
.directive('subscribersList', function(){
return {
restrict: 'E',
scope: {},
bindToController: true,
controllerAs: 'vm',
templateUrl: 'templates/subscribers-list.tpl.html',
controller: function(){
this.smartTableConfig = {
resource: 'Subscribers'
};
}
};
});