VOOZH about

URL: https://www.geeksforgeeks.org/angular-js/how-to-append-a-new-table-row-in-angularjs/

⇱ How to append a new table row in AngularJS ? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to append a new table row in AngularJS ?

Last Updated : 23 Jul, 2025

In this article, we will see how to insert or append the new table row in AngularJS, along with knowing its implementation through the examples.

Approach: The approach is to use the push() method to insert the new rows into the array. This array will be served as the content to the <tr> element. The ng-repeat directive is used to serve the content of the array to the table cells.

Example 1: In the first example, a single column table is used and the content is stored in the array in the form of its element.

Output:

👁 Image
 

Example 2: In this example, a table of three columns is used which stores the content of the table in the format of Object.

Output:

👁 Image
 
Comment

Explore