I have this code with custom attribute header
:
<div id="foo" class="col-sm-12 col-md-12"
directives="directives"
header="{ name: 'Landing Page' }" style="border-width:5px; border-style:dashed;"></div>
When I execute this code, it will remove the dashed border but not the Landing Page
text.
var myEl = angular.element( document.querySelector( '#foo' ) );
myEl.removeAttr('style');
myEl.removeAttr('header');
Why don't the text disappear and how can I remove custom attribute? Please help and thanks in advance.