157
rated 0 times
[
161]
[
4]
/ answers: 1 / hits: 22051
/ 5 Years ago, tue, may 14, 2019, 12:00:00
In my case, I have an access token, and should that token exist, I would return it as an observable of type string:
if (this.accessToken){
return of(this.accessToken);
}
Due to a recent update, I noticed that of
is deprecated with the following message:
of is deprecated: use scheduled instead 'scheduled([a, b, c], scheduler)' (deprecation)
The new syntax is quite verbose, would anyone know the equivalent scheduled
version of the same simple of
? The keyword name makes it difficult to search for information on it.
Thanks!
More From » angular