In my angular app we have a process button that makes calls to the backend service to save data changes for an issue and flips a flag for the issue being read.
I’d like to make my HTTP calls synchronous (wait) so I can determine if the data was saved successfully. If the data was saved successfully we’ll display a green material snack-bar and success message. If the call(s) fail we’ll display a red material snack-bar with error message.
Originally everything was a subscribe which was async. I did the following based on some articles I came across.