I have a long running (2-10 sec) Typescript (reads many files), run from a button click event, and I want to show a spinner.
If I look at events on the button there is a "present loading" to start a spinner, but no event to to stop it.
I found an article that suggested using showSpinner / hideSpinner, but that was for jQuery and this does not seem to work in my ionic project. WHen I tried that I got
ERROR in src/app/ImportParaJournal/ImportParaJournal.ts:170:9 - error TS2304: Cannot find name 'showSpinner'.
170 showSpinner();
Code: Select all
src/app/ImportParaJournal/ImportParaJournal.ts:187:9 - error TS2304: Cannot find name 'hideSpinner'.
187 hideSpinner();