I have a problem,
I have that :
getComposition(){
return this.http.get("/api/setup/composition/getComposition",{responseType: 'text'});
}
var composition;
this.getComposition().subscribe(data => {composition = data});
console.log(composition);
And hen i display composition it return me undefined.. How i can get the result of my request in my var composition ? ...
I have already search a solution... I'm Using Angular
Thanks for your help.