mirror of https://github.com/portainer/portainer
12 lines
414 B
JavaScript
12 lines
414 B
JavaScript
angular.module('sidebar', [])
|
|
.controller('SideBarController', ['$scope', 'Container', 'Settings',
|
|
function ($scope, Container, Settings) {
|
|
$scope.template = 'partials/sidebar.html';
|
|
$scope.containers = [];
|
|
$scope.endpoint = Settings.endpoint;
|
|
|
|
Container.query({all: 0}, function (d) {
|
|
$scope.containers = d;
|
|
});
|
|
}]);
|