I need to get the width of a css class in my angular component at the run time
<div class="document-section"></div>
I can't seems to get it by trying any of these:
$('.document-section').width()
$('.document-section').attr('width')
with error
Uncaught TypeError: $(...).width is not a function at :1:22
Can anyone help me with this? Thank you