Javascript 在HTML中不呈现字符串变量

Javascript 在HTML中不呈现字符串变量,javascript,html,angularjs,Javascript,Html,Angularjs,在从typescript文件中的API获取字符串值后,我试图呈现该字符串值,但不知何故,即使它显示在控制台的任何输入中,它也没有显示在HTML中 getVersion():void{ this.dataService.sendGetRequest() .订阅( 响应=>{ this.products=JSON.parse(JSON.stringify(response.JSON()); console.log(this.products['version']); this.products_v

在从typescript文件中的API获取字符串值后,我试图呈现该字符串值,但不知何故,即使它显示在控制台的任何输入中,它也没有显示在HTML中

getVersion():void{
this.dataService.sendGetRequest()
.订阅(
响应=>{
this.products=JSON.parse(JSON.stringify(response.JSON());
console.log(this.products['version']);
this.products_version=this.products['version'];
console.log(此.products\u版本);
},
错误=>{}
);
}

{{products_version}}