
function NavbarCtrl($scope, $rootScope, $route, $location, Data) {
    $scope.data = Data;

    //$scope.data.host = 'http://' + window.location.host;

    $scope.isActive = function(route) {

        var path = $location.path();


        if (path === '/')
            path = '/queries';

        return (('/' + route.toLowerCase()) === path);
    }


}


function NavbarCtrl($scope, $rootScope, $route, $location, Data) {
    $scope.data = Data;

    $scope.data.host = 'http://' + window.location.host;

    $scope.isActive = function(route) {

        var path = $location.path();


        if (path === '/')
            path = '/queries';

        return (('/' + route.toLowerCase()) === path);
    }


}

Revert local change