Hello,
I use Contentful with GET Requette like this:
return this.http.get(url)
.map(res => res)
.map((items: any) => {
//blablabla ...
Rate= this.getsCurrentUserRate(item.sys.id);
result = new Session(item.fields.title, ... balblabla,
Rate);
return result;
})
While getsCurrentUserRate is an auther obsevable :
public getsCurrentuserRate(sessionid: string) {
return this.http.get(url)
.map(res => res)
.map((items: any) => {
//blablabla ...
result = new Rate(... blablabla);
return result;
})
}
How to impose my first method to wait response the second method?
I do not understand how to write it.
thank you,
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.