blob: 203e9ff92dca70b18b7fe42d02fcfd8bb7b79a74 [file] [log] [blame]
Matteo Scandoloe5be1822016-05-25 08:53:11 -07001'use strict';
2
3angular.module('xos.subscribers', [
4 'ngResource',
5 'ngCookies',
6 'ui.router',
7 'xos.helpers'
8])
9.config(($stateProvider) => {
10 $stateProvider
11 .state('user-list', {
12 url: '/',
13 template: '<subscribers-list></subscribers-list>'
14 });
15})
16.config(function($httpProvider){
17 $httpProvider.interceptors.push('NoHyperlinks');
18})
19.directive('subscribersList', function(){
20 return {
21 restrict: 'E',
22 scope: {},
23 bindToController: true,
24 controllerAs: 'vm',
25 templateUrl: 'templates/subscribers-list.tpl.html',
Matteo Scandolodf23cdb2016-05-25 17:37:37 -070026 controller: function(){
Matteo Scandoloe5be1822016-05-25 08:53:11 -070027
Matteo Scandoloe5be1822016-05-25 08:53:11 -070028 this.smartTableConfig = {
29 resource: 'Subscribers'
30 };
Matteo Scandoloe5be1822016-05-25 08:53:11 -070031 }
32 };
33});