Observable after every send return example
setData(data: any): Observable<Array<any>> {
this.amount = data.amount;
this.currency = data.currency;
this.description = data.description;
this.email = data.email;
this.source = data.source;
this.customer = data.customer;
return Observable.interval(1000).map(i=> [{amount: this.amount},{currency: this.currency},{email:this.email}]);
}
setData(data: any): Observable<Array<any>> {
this.amount = data.amount;
this.currency = data.currency;
this.description = data.description;
this.email = data.email;
this.source = data.source;
this.customer = data.customer;
return Observable.interval(1000).map(i=> [{amount: this.amount},{currency: this.currency},{email:this.email}]);
}
Comments
Post a Comment