Closed git4anjali closed 5 years ago
What is this.spinner
for? Are you inside a class? Have you tried following the documentation and using document.getElementById
instead of jQuery?
Yes, I am inside a class, spinner is my class variable, so that I initialize it once and use it as many times as needed.
Thank you very much @theodorejb , when I tried with "document.getElementById" it worked!
I followed the documentation in https://spin.js.org/ however somehow spinner is not working for me - the spinner never shows up with no error on console.
I am using typescript. Find my html,typescript code as below
My html code
<div id="spin-loader" class="spinner">
My typescript code
Could you please help me?