Hii..everyone angular2 . There are many fetching process takes place in my 
project from server-side. I want to display the data fetching status at 
client side . Plase help me how can I make it possible. 

in my *Component.ts* I Used

constructor(private service: ReturnJsonService){}
Get(){
//alert(JSON.stringify(id));
this.service.Getdata().subscribe(data => this.obj1 = data);
this.service.Getname().subscribe(data => this.obj2 = data);
this.service.Getcost().subscribe(data => this.obj3 = data);

// these are the 3 fetching process that i used . I want to display 
fetching status in the screen 
this.msg = "All the Details Fetched..!"
}




in *ReturnJsonService**.ts*


export class ReturnJsonService {
public req;
constructor( private http :Http) { }
Getdata(): Observable<any> {
return this.http.get('http://192.168.0.101:8000/data')
.map(response => response.json())

}
Getname(): Observable<any> {
return this.http.get('http://192.168.0.101:8000/Name')
.map(response => response.json())
}
Getcost(): Observable<any> {
return this.http.get('http://192.168.0.101:8000/cost')
.map(response => response.json())
}
}



thanks in advance..

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" 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.

Reply via email to