Matteo Scandolo | 7d539d3 | 2016-05-25 08:53:11 -0700 | [diff] [blame] | 1 | 'use strict'; |
| 2 | |
| 3 | angular.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 Scandolo | 03d8b8e | 2016-05-25 17:37:37 -0700 | [diff] [blame] | 26 | controller: function(){ |
Matteo Scandolo | 7d539d3 | 2016-05-25 08:53:11 -0700 | [diff] [blame] | 27 | |
Matteo Scandolo | 7d539d3 | 2016-05-25 08:53:11 -0700 | [diff] [blame] | 28 | this.smartTableConfig = { |
| 29 | resource: 'Subscribers' |
| 30 | }; |
Matteo Scandolo | 7d539d3 | 2016-05-25 08:53:11 -0700 | [diff] [blame] | 31 | } |
| 32 | }; |
| 33 | }); |