I make a Get call to my API and want the result as a string so I can split it
GetServiceProviderId() {
this.http.get(this.rooturl + 'info', { headers: this.reqHeader });
var data = "mitId: 18, ServiceProvider: 2" <- result I get and want to split
var dataspilitted = data.split(" ");
return dataspilitted[3];
}