基于标志复选框禁用并使用Angular 8从表中启用
我有列表数组,例如:这是getCall。
[ {“主持人”:“ bharath”,“ topic”:“ angular”,“ status”:“计划”,“ emailID”:“ [email  procented] “}, {“主持人”:“ Sayyad”,“ topic”:“ Angular”,“状态”:“有组织”,“ emailId”:“ [email  protected] “ ];
if Logged user is [email protected] is matches to this List of Array emailId 。我需要启用复选框。如果不匹配,则需要禁用。
代码:
private getKtsession(){ console.log('==',this.sesionuser ['emailId']);
this.service.getKtsession().subscribe(data =>{
console.log('get', data);
this.ktsessions = data;
data.filter(user => {
if(user.emailId === this.sesionUser['emailid']){
this.isDisabled =false;
} else {
this.isDisabled =true;
console.log('else');
}
});
});
} HTML代码是
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论