<div nav-bar-button="left" class="button" my-super-custom-attribute>
Content! {{moreContent}}
</div>
nav-bar-button would look for the nearest parent or sibling header-bar and add the button - then when the <div nav-bar-button> element is destroyed (through say an ng-if, or through just a view getting taken out), the button would be removed.
nav-bar-buttonwould look for the nearest parent or sibling header-bar and add the button - then when the<div nav-bar-button>element is destroyed (through say an ng-if, or through just a view getting taken out), the button would be removed.