123456789101112131415161718192021222324252627282930313233343536 |
- 'use strict';
- * @ngdoc function
- * @name domainManagerApp.controller:AboutCtrl
- * @description
- * # AboutCtrl
- * Controller of the domainManagerApp
- */
- angular.module('domainManagerApp.domains', ['ui.bootstrap'])
- .controller('DomainsListController', function ($scope, $http) {
- $http({
- method: 'GET',
- url: '/scripts/data.json'
- }).success(function(data) {
- $scope.domains = data.domains;
- });
- $scope.oneAtATime = false;
- $scope.isOpen = false;
- $scope.labelColor = function(status) {
- if (status == "OK"){
- var color = "label-success";
- } else if (status == "DEAD") {
- var color = "label-danger";
- } else {
- var color = "label-default";
- }
- return color;
- }
- });
|