Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

nested for loop in angular

rows = [
    {nom: "nom1", composants: ["composant11", "composant12"]}, 
    {nom: "nom2", composants: ["composant21", "composant22"]}
];

<table>
    <ng-container *ngFor="let row of rows">
        <tr *ngFor="let composant of row.composants">
            <td> {{ composant }} </td>
            <td> {{ row.nom }} </td>
        </tr>  
    <ng-container>  
</table>
Comment

PREVIOUS NEXT
Code Example
Javascript :: get dynamic value in jquery 
Javascript :: Serve the angular application 
Javascript :: what does connect do in redux 
Javascript :: limit number in javascript 
Javascript :: base64 in js 
Javascript :: find number in array js 
Javascript :: find if json property is of type date type 
Javascript :: react navigation params 
Javascript :: Session Time Out 
Javascript :: hydration in next js 
Javascript :: simple todo list javascript 
Javascript :: mongoose find 
Javascript :: how to run a react app 
Javascript :: map function in js 
Javascript :: escape character javascript 
Javascript :: js get type 
Javascript :: jquery traversing methods 
Javascript :: how to add css based on route react 
Javascript :: Declare and Initialize Arrays in javascript 
Javascript :: javascript image preview before upload 
Javascript :: fs readfile promise 
Javascript :: how to calculate first monday of the month in js 
Javascript :: update property of object in array javascript 
Javascript :: inner function in javascript 
Javascript :: set visible vue 
Javascript :: autocomplete html in react 
Javascript :: mongoose virtual populate 
Javascript :: keyframe options 
Javascript :: how to find out what a string ends with in javascript 
Javascript :: react onclick remove component 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =