I have a emberjs app with a form. The user fills out the form then clicks the search button. The search button passes what the user entered into the form to a nodejs back-end api that I created.
How would I add a spinner or loading display while the api is attempting to return data. Right now the user clicks search and the screen just locks up/hangs until the results are returned. Sometimes its fast and sometimes depending on the back-end servers it can take longer.
I’ve tried different option. But none are working so far. What would be the best way to do this?
Should I create a temporary route when the user clicks search. But how would I pass the form contents to the temporary route, then off to the api, while still displaying the temporary route, until the api returns the data to display?
Right now my app only has one component for the entire app.
Thank you for your help… I can provide my full code if needed…