How can I retrieve the badge value of a Button? This badge represents data-text-as-pseudo-element
and I am new to Angular. Can someone guide me on how to achieve this?
<style
type="text/css">[data-text-as-pseudo-element]::before { content: attr(data-text-as-pseudo-element); }
</style>
<button role="tab" title="Chats" tabindex="0" aria-label="Chats, 1
unread notification." aria-selected="true" style="position: relative;
display: flex; flex-direction: column; flex-grow: 0; flex-shrink: 0;
overflow: hidden; align-items: center; justify-content: center;
background-color: transparent; border-color: transparent; text-align:
left; border-width: 0px; width: 80px; padding-top: 2px; height: 50px;
cursor: pointer; border-style: solid;">
<div role="none"
style="position: relative; display: flex; flex-direction: column;
flex-grow: 0; flex-shrink: 0; overflow: hidden; align-items: center;
justify-content: center; width: 80px; height: 50px;">
<div
aria-hidden="true" data-text-as-pseudo-element="" style="position:
relative; display: inline; flex-grow: 0; flex-shrink: 0; overflow:
hidden; white-space: pre-wrap; overflow-wrap: break-word; height:
20px; font-size: 20px; color: rgb(0, 120, 212); background-color:
rgba(0, 0, 0, 0); font-family: SkypeAssets-Light; padding: 0px;
cursor: inherit;"></div><div data-text-as-pseudo-element="Chats"
style="position: relative; display: inline; flex-grow: 0;
flex-shrink: 0; overflow: hidden; white-space: pre; text-overflow:
ellipsis; font-size: 10px; color: rgb(0, 120, 212); font-family:
"SF Regular", "Segoe System UI Regular",
"Segoe UI Regular", sans-serif; font-weight: 400;
text-align: center; margin-top: 2px; align-self: stretch; cursor:
inherit;"></div><div role="none" aria-hidden="true" style="position:
absolute; display: flex; flex-direction: column; flex-grow: 0;
flex-shrink: 0; overflow: visible; align-items: center; height: 24px;
width: 30px; top: 0px; right: 12px; justify-content: center;">
<div
role="none" style="position: relative; display: flex; flex-direction:
column; flex-grow: 0; flex-shrink: 0; overflow: hidden; align-items:
center; justify-content: center; height: 20px; min-width: 20px;
border-radius: 10px; background-color: rgb(244, 67, 54);
padding-left: 4px; padding-right: 4px; width: 20px; border-color:
rgb(240, 244, 248); border-width: 2px; border-style: solid;">
<div
data-text-as-pseudo-element="1" style="position: relative; display:
inline; flex-grow: 0; flex-shrink: 0; overflow: hidden; white-space:
pre; text-overflow: ellipsis; color: rgb(255, 255, 255); font-size:
10px; line-height: 10px; text-align: center; background-color:
rgba(0, 0, 0, 0); font-family: "SF Bold", "Segoe
System UI Bold", "Segoe UI Bold", sans-serif;
font-weight: 400; cursor: inherit;">
</div>
</div>
</div>
</div>
</button>
https://i.sstatic.net/5Fccj.png
Any recommendations or advice would be greatly appreciated!
Thank you in advance!!