I'm facing an issue with a div
element and a nested button
both having ui-sref
attributes. The div
acts as a button, but when I click on the actual button
, it momentarily shows the state linked to it before switching to the state assigned to the parent div
.
Is there a way to ensure that only the button
changes the state upon being clicked?
<div ui-sref="loadDocument({doc: documentName})">
{{documentName}}
<button class="btn" ui-sref="viewMetadata({doc: documentName})">
View Metadata
</button>
</div>