Last active
April 17, 2024 12:16
isLoadRequestInProgress boolean flag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected isLoadRequestInProgress = false; | |
private loadUserData() { | |
// set the loading flag when the request is initiated | |
this.isLoadRequestInProgress = true; | |
this.getUserData$().subscribe(userData => { | |
// clear the loading flag when the request completes | |
this.isLoadRequestInProgress = false; | |
// display the user data in the form | |
this.updateForm(userData); | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment