subscribe observable using await code example
Example 1: await on observable
if (condition) {
await observable.first().toPromise();
}
Example 2: await on observable
await observable.toPromise();
if (condition) {
await observable.first().toPromise();
}
await observable.toPromise();