Rohan Ramani

Rohan Ramani

  • NA
  • 786
  • 144.2k

for loop in html angular

Nov 28 2018 7:08 AM
Hi,
I have a table in cshtml razor page
 
  1. <tbody>  
  2.        @foreach (var item in Model.ArticleMaster)  
  3.        {  
  4.            <tr>  
  5.                <td>  
  6.                    <a asp-page="./Details" asp-route-id="@item.ArticleId">  
  7.                        @Html.DisplayFor(modelItem => item.Title)  
  8.                    </a>  
  9.                </td>  
  10.   
  11.                <td>  
  12.                    @*@Html.DisplayFor(modelItem => item.AuthorUserId)*@  
  13.                    @Html.DisplayFor(modelItem => item.AuthorName)  
  14.                </td>  
  15.   
  16.                <td>  
  17.                    @Html.DisplayFor(modelItem => item.DateAdded)  
  18.                </td>  
  19.   
  20.                <td>  
  21.                    @Html.DisplayFor(modelItem => item.Status.Status)  
  22.                </td>  
  23.                <td>  
  24.                    @Html.DisplayFor(modelItem => item.Section.SectionName)  
  25.                </td>  
  26.            </tr>  
  27.        }  
  28.    </tbody>  
 I need to implement in angular
how to do? please help 

Answers (2)