(function() {
    "use strict";

    angular
        .module('VinculacionApp')
        .directive('tbHeaderbar', tbHeaderbar);

    function tbHeaderbar() {
        var directive = 
        {
            restrict: 'E',
            scope: {
                expand: '='
            },
            templateUrl: 'templates/shared/TB-Headerbar/tb-headerbar.html'        
        };

        return directive;
    }

})();
(function() {
    "use strict";

    angular
        .module('VinculacionApp')
        .directive('tbHeaderbar', tbHeaderbar);

    function tbHeaderbar() {
        var directive = 
        {
            restrict: 'E',
            scope: {
                expand: '=?'
            },
            templateUrl: 'templates/shared/TB-Headerbar/tb-headerbar.html'        
        };

        return directive;
    }

})();
Make expand property optional for headerbar