1
0
Fork 0

feat: new Web UI build system

- use generator-gulp-angular by @swiip
- remove old static file
This commit is contained in:
Fernandez Ludovic 2015-12-22 01:02:59 +01:00
parent 587b17c120
commit b7a71edfcb
83 changed files with 1069 additions and 1028 deletions

View file

@ -0,0 +1,28 @@
(function () {
'use strict';
angular
.module('traefik.section.providers')
.controller('ProvidersController', ProvidersController);
/** @ngInject */
function ProvidersController($scope, $interval, $log, Providers) {
var vm = this;
vm.providers = Providers.get();
var intervalId = $interval(function () {
Providers.get(function (providers) {
vm.providers = providers;
}, function (error) {
vm.providers = {};
$log.error(error);
});
}, 2000);
$scope.$on('$destroy', function () {
$interval.cancel(intervalId);
});
}
})();