How do i call http POST service call after the GET, if response is success.
I have the written the GET call in the following way,
import {Page, NavContro
**It could be better if you use another Function sucees**
onLogin(value: string): void {
if(this.authForm.valid) {
this.http.get('https://itunes.apple.com/us/rss/topmovies/limit=1/json')
.map(res => res.json())
.subscribe(
data => {console.log(JSON.stringify(data));},
err => this.logError(err),
() => this.add();
);
this.nav.push(AccountViewPage);
}
}
public add(): void {
// another service here
}