I'm currently working on an AngularJS application and I have a div that's structured like this:
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.10/angular.min.js"></script>
<div class="role">
Sign Up
</div>
Is there a way for me to dynamically determine the width of the content inside the div based on the screen size? In the image provided, the width of Sign Up is noted as 52.36px.
https://i.sstatic.net/TZAxa.png
Any assistance would be greatly appreciated. Thank you!