Discussion for angular (2+) - need help? create a stackblitz with your issue to get help faster using this template: https://stackblitz.com/fork/angular-issue-repro2
alxhub on main
docs: release notes for the v14… (compare)
alxhub on 14.0.0-rc.2
alxhub on 14.0.x
release: cut the v14.0.0-rc.2 r… (compare)
BehaviorSubject
though
that guy is doing this
getProfileData(username:string):any {
return new Promise((resolve, reject) => {
this._authHttp.get(API_PREFIX + '/users/username/' + username)
.map(res => res.json())
.subscribe(
data => {
resolve(data.data);
},
err => {
reject(err);
}
)
;
});
simple because he saw promises being used in the tutorial
Observable.toPromise()