I have data in ts, i need to fetch that data inside the Angular4 html, but i am able to fetch only 2 data which are outside the loop. Can anyone help me to fetch data inside angular4.
HTML:
<tr *ngFor="let accept of accepts">
<td>{{accept.name}}</td>
<td>{{accept.description}}</td>
<td>{{accept.daterecv}}</td>
<td>{{accept.dateacc}}</td>
<td>{{accept.deadline}}</td>
<td>{{accept.price}}</td>
<td>{{accept.status}}</td>
<td>{{accept.due_date}}</td>
</tr>
</tbody>
Ts:
this.service
.getProfileData(id)
.subscribe(
data => {
this.accepts = data;
console.log(this.accepts);
}, error => {})
Consoled Output:
