'use strict'; /** * @ngdoc function * @name docker-registry-frontend.controller:MainController * @description * # MainController * Controller of the docker-registry-frontend */ angular.module('main-controller', ['ngRoute', 'app-version-services', 'registry-services']) .controller('MainController', ['$scope', '$route', '$routeParams', '$location', 'AppVersion', 'RegistryHost', function($scope, $route, $routeParams, $location, AppVersion, RegistryHost){ this.$route = $route; this.$location = $location; this.$routeParams = $routeParams; $scope.appVersion = AppVersion.query(); $scope.registryHost = RegistryHost.query(); }]);