I want to know what is the difference between the below two service methods in Angular.
Case 1:
public UserId(): **Observable<string>** {
}
Case 2:
public UserId(): {
}
I want to what is a specific purpose to use Observable <string> along with the service method in Angular. Please provide a specific example if possible.