mercredi 14 octobre 2020

Is there any way to display a collection of string in Table format?

I am parsing a file and the format of data in variable "newData" which I am getting is:

    "Heading1","Heading2","Heading3","Heading4" 
    "Value1","Value2","Value3","Value4"
    "Value5","Value6","Value7","Value8"

And it should get displayed in the following format:

Value in Table Format

In the HTML Side,I am running this code but it doesn't seem to help:

     <table>
        <tr *ngFor="let d of newData">
            <td></td>
        </tr>
    </table>



Aucun commentaire:

Enregistrer un commentaire