kwk/docker-registry-frontend

View on GitHub
app/main-controller.js

Summary

Maintainability
A
0 mins
Test Coverage
'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();
    }]);