📜  p-selectbutton 动态设置值 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:08.343000             🧑  作者: Mango

代码示例1
1)intially set false to the div ,make it true after api returns data.see bellow eg:
 html:
 
 
ts: getPostStatus() { this.api.getPostStatus("POST_STATUS").subscribe( (res) => { this.postStatus = res.results; this.postModel.postStatus = this.postStatus[0].lookup_value for(let i=0;i { console.log("no data available for GOOGLE_RATING"); } ); }