"use strict";

angular.module('arethusa.core').directive('arethusaNavbar', function(configurator) {
  return {
    restrict: 'AE',
    scope: true,
    link: function(scope, element, attrs) {
      var conf = configurator.configurationFor('navbar');
      scope.template = conf.template;
      scope.hide   = conf.hide;

      scope.showSearch = function() {
        return conf.search;
      };

      scope.showNavigation = function() {
        return conf.navigation;
      };
    },
    template: '<div ng-hide="hide" ng-include="template"></div>'
  };

});

"use strict";

angular.module('arethusa.core').directive('arethusaNavbar', function(configurator) {
  return {
    restrict: 'AE',
    scope: true,
    link: function(scope, element, attrs) {
      var conf = configurator.configurationFor('navbar');
      scope.template = conf.template;
      scope.disable   = conf.disable;

      scope.showSearch = function() {
        return conf.search;
      };

      scope.showNavigation = function() {
        return conf.navigation;
      };
    },
    template: '<div ng-if="! disable" ng-include="template"></div>'
  };

});

Rename hide to disable in navbar and use ngIf
Rename hide to disable in navbar and use ngIf

We don't want to draw the element at all, if the navbar is disabled.
