WIP Domain listing app with automatic status checking. Buitl with AngularJS.

header.js 367B

12345678910111213141516
  1. 'use strict';
  2. /**
  3. * @ngdoc function
  4. * @name domainManagerApp.controller:MainCtrl
  5. * @description
  6. * # MainCtrl
  7. * Controller of the domainManagerApp
  8. */
  9. angular.module('domainManagerApp')
  10. .controller('HeaderController', function ($scope, $location) {
  11. $scope.isActive = function (viewLocation) {
  12. return viewLocation === $location.path();
  13. };
  14. });