'How I can solve this error: Property 'name' does not exist on type 'never'?
<div class="ContentDiv">
<div class="container">
<div class="row" style="padding-top: 5px;">
<app-patient
*ngFor= "let x of Users"
class='col-3'
[name]= "x.name"
[PassedPCR]="x.PassedPCR"></app-patient>
</div>
</div>
</div>
I am using Angular, and above is the code that has a problem:
<app-patient
*ngFor= "let x of Users"
class='col-3'
[name]= "x.name"
[PassedPCR]="x.PassedPCR">
By "x.name", I am expecting to call the names from an API using "fetch". But it doesn't work.
Solution 1:[1]
This means that the user does not have the "name" information. what information is available to the user ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Baba |
