My code snippet goes here
I have a List Array called "ktsessions" which contains the following data: ktsessions = [ {"presenter":"Bharath","topic":"Angular","status":"scheduled","emailId":"[email protected]"}, {"presenter":"Sayyad","topic":"Angular","status":"organized","emailId":"[email protected]"},{"presenter":"Kanchan","topic":"APS","status":"scheduled","emailId":"[email protected]"} ];
<tr *ngFor = "let ktsession of ktsessions >
<td ><input type="checkbox" [disabled]='disabled'></td>
</tr>
Here is the TypeScript code:
getktsession(){
this.service.getKtsession().subscribe(data =>{
console.log('get', data);
this.ktsessions = data;
this.ktsessions.find(user => {
if(user.presenter === "Kanchan"){
this.disabled = true
} else {
this.disabled = false;
}
});
});
}