1
에서 빈 JSON 응답을 처리 난이 기능을 가지고 각도 2 (타이프) HTTP를
searching() {
this._demoService.postData(this.url,this.searchtobesent).subscribe(
data =>{
this.listings=data;
this.errorMsg="";
if(data){
}
else{
this.errorMsg="Nothing Found";
}
},
error =>{
console.log("error : "+error);
this.errorMsg="Error Loading Your Listings";
}
) ;
}
모든 것이 괜찮 (JSON 형식으로 전송되는) 내 백엔드에서 어떤 결과가
. 결과가 비어 있고 난 서버 내가 this.errorMsg 찾을 아무것도가되지하려면이[]
에서받을 때 내가 원하는 것입니다. 도움을 주시면 감사하겠습니다.) 감사합니다.
응용 프로그램이 다른 포트로 서비스를 호출합니까? 그렇다면 어떤 프레임 워크 (.NET, Spring 등)를 사용하고 있습니까? – Drew1208