Having component's property called publicArray you can you can achive that by writing the following template:

<table *ngIf="publicArray?.settings?.length && publicArray.settings[0].data?.length">
  <tr>
    <th>ID</th>
    <th *ngFor="let header of publicArray.settings[0].data">{{ header.title }}</th>
  </tr>
  <tr *ngFor="let row of publicArray.settings">
    <td>{{ row.id }}</td>
    <td *ngFor="let col of row.data">
      {{ col.value }}
    </td>
  </tr>
</table>

Ng-run Example

Answer from yurzui on Stack Overflow
🌐
GitHub
github.com › bacali95 › ngx-json-table
GitHub - bacali95/ngx-json-table: Angular Json Data Table component.
ngx-json-table is a flexible Angular component designed to display and edit JSON objects as HTML tables.
Author   bacali95
🌐
StackBlitz
stackblitz.com › edit › json-to-htmltable
Json To Htmltable - StackBlitz
Starter project for Angular apps that exports to the Angular CLI
Top answer
1 of 6
30

The solution you are looking for is in Angular's official tutorial. In this tutorial Phones are loaded from a JSON file using Angulars $http service . In the code below we use $http.get to load a phones.json file saved in the phones directory:

var phonecatApp = angular.module('phonecatApp', []);   
phonecatApp.controller('PhoneListCtrl', function ($scope, $http) {
 $http.get('phones/phones.json').success(function(data) {
$scope.phones = data;
}); 
$scope.orderProp = 'age';
});

We then iterate over the phones:

<table>
  <tbody ng-repeat="i in phones">
    <tr><td>{{i.name}}</td><td>{{$index}}</td></tr>
    <tr ng-repeat="e in i.details">
       <td>{{$index}}</td>
       <td>{{e.foo}}</td>
       <td>{{e.bar}}</td></tr>
  </tbody>
</table>
2 of 6
9

Easy way to use for create dynamic header and cell in normal table :

<table width="100%" class="table">
 <thead>
  <tr>
   <th ng-repeat="(header, value) in MyRecCollection[0]">{{header}}</th>
  </tr>
 </thead>
 <tbody>
  <tr ng-repeat="row in MyRecCollection | filter:searchText">
   <td ng-repeat="cell in row">{{cell}}</td>
  </tr>
 </tbody>
</table>

MyApp.controller('dataShow', function ($scope, $http) {
    //$scope.gridheader = ['Name','City','Country']
        $http.get('http://www.w3schools.com/website/Customers_MYSQL.php').success(function (data) {

                $scope.MyRecCollection = data;
        })

        });

JSON Data :

[{
    "Name": "Alfreds Futterkiste",
    "City": "Berlin",
    "Country": "Germany"
}, {
    "Name": "Berglunds snabbköp",
    "City": "Luleå",
    "Country": "Sweden"
}, {
    "Name": "Centro comercial Moctezuma",
    "City": "México D.F.",
    "Country": "Mexico"
}, {
    "Name": "Ernst Handel",
    "City": "Graz",
    "Country": "Austria"
}, {
    "Name": "FISSA Fabrica Inter. Salchichas S.A.",
    "City": "Madrid",
    "Country": "Spain"
}, {
    "Name": "Galería del gastrónomo",
    "City": "Barcelona",
    "Country": "Spain"
}, {
    "Name": "Island Trading",
    "City": "Cowes",
    "Country": "UK"
}, {
    "Name": "Königlich Essen",
    "City": "Brandenburg",
    "Country": "Germany"
}, {
    "Name": "Laughing Bacchus Wine Cellars",
    "City": "Vancouver",
    "Country": "Canada"
}, {
    "Name": "Magazzini Alimentari Riuniti",
    "City": "Bergamo",
    "Country": "Italy"
}, {
    "Name": "North/South",
    "City": "London",
    "Country": "UK"
}, {
    "Name": "Paris spécialités",
    "City": "Paris",
    "Country": "France"
}, {
    "Name": "Rattlesnake Canyon Grocery",
    "City": "Albuquerque",
    "Country": "USA"
}, {
    "Name": "Simons bistro",
    "City": "København",
    "Country": "Denmark"
}, {
    "Name": "The Big Cheese",
    "City": "Portland",
    "Country": "USA"
}, {
    "Name": "Vaffeljernet",
    "City": "Århus",
    "Country": "Denmark"
}, {
    "Name": "Wolski Zajazd",
    "City": "Warszawa",
    "Country": "Poland"
}]
🌐
Codepedia
codepedia.info › angularjs-bind-json-data-table
AngularJS: Bind JSON data to HTML Table [ng-repeat] - Codepedia
August 24, 2021 - How to bind JSON data to HTML table in Angular js, Use ng-repeat to bind data table, Populate HTML table with JSON data, create dynamic table with JSON data
🌐
EncodedNA
encodedna.com › angular › read-an-external-json-file-in-angular-4-and-convert-data-to-table.htm
Read an external JSON file in Angular and Convert Data to HTML Table
You can use the HttpClient service in Angular to read and extract data from an external JSON file. Using the Get() method of HttpClient class, you can easily open and read data from a JSON file. Here in this post, I am sharing a simple example on how to read JSON data from a file and convert ...
Find elsewhere
Top answer
1 of 7
4

There are many ways to display the json data in angular, you can bind your json as

  1. ng-repeat

       <tr ng-repeat="values in data"> 
    
  2. nested ng-repeat depending on the json format
  3. ng-repeat with 'track by' while dealing with index values

        <tr ng-repeat="item in rows">
              <td>{{item.project}}({{item.task}})</td>
              <td  ng-repeat="values in item.hour track by $index">
             <input type="number" ng-model="item.hour[$index]"/>    
              </td>
        </tr>
    
  4. ng-repeat with key value pairs

        <tr ng-repeat="(key, value) in data">
         <td> {{key}} </td> <td> {{ value }} </td>
        </tr>
    

In your case, best option is to use basic ng-repeat as

   <tr ng-repeat="values in data">
      <td>{{values.keycolumn1}}</td>
      <td>{{values.originkey1}}</td>
      <td>{{values.datafield1}}</td>
   </tr>
2 of 7
2

Just try like this,

var appReminder = angular.module('testApp', []);
appReminder.factory('testFactory', function ($http) {
return {}
});
        
appReminder.controller('testController', function PostController($scope, testFactory, $timeout) 
{
  
   $scope.result_function = function () 
   {
      $scope.respose = [
        {"keycolumn1":1,"originkey1":1,"datafield1":1},
        {"keycolumn1":2,"originkey1":2,"datafield1":2},
        {"keycolumn1":3,"originkey1":3,"datafield1":3},
        {"keycolumn1":4,"originkey1":4,"datafield1":4},
        {"keycolumn1":5,"originkey1":5,"datafield1":5},
        {"keycolumn1":11,"originkey1":11,"datafield1":11},
        {"keycolumn1":12,"originkey1":12,"datafield1":12},
        {"keycolumn1":13,"originkey1":13,"datafield1":13},
        {"keycolumn1":14,"originkey1":14,"datafield1":14},
        {"keycolumn1":15,"originkey1":15,"datafield1":15}];
   ;}
  
  $scope.result_function();
});
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>


<div ng-app="testApp" data-ng-controller="testController">
  <table border="1">
     <tr>
       <th>Keycolumn</th>
       <th>Originkey</th>
       <th>Datafield</th>
     <tr>
     <tr ng-repeat="item in respose">
       <td>{{item.keycolumn1}}</td>
       <td>{{item.originkey1}}</td>
       <td>{{item.datafield1}}</td>
     </tr>
</table>
</div>

🌐
GitHub
github.com › davidmartinezros › bind-json-array-to-html-table
GitHub - davidmartinezros/bind-json-array-to-html-table: Here comes an Angular-Cli application with a service that returns a json file structure that is print in an html template file like an html table. Inspired in this AngularJS example: http://stackoverflow.com/questions/22209117/create-table-from-json-data-with-angularjs-and-ng-repeat
Here comes an Angular-Cli application with a service that returns a json file structure that is print in an html template file like an html table. Inspired in this AngularJS example: http://stackoverflow.com/questions/22209117/create-table-from-json-data-with-angularjs-and-ng-repeat - davidmartinezros/bind-json-array-to-html-table
Starred by 4 users
Forked by 7 users
Languages   TypeScript 69.3% | JavaScript 18.7% | HTML 9.4% | CSS 2.1% | Batchfile 0.5% | TypeScript 69.3% | JavaScript 18.7% | HTML 9.4% | CSS 2.1% | Batchfile 0.5%
🌐
ASPSnippets
aspsnippets.com › Articles › Bind-JSON-data-Array-to-HTML-table-using-AngularJS.aspx
Bind JSON data Array to HTML table using AngularJS
August 29, 2017 - The AngularJS ng-repeat directive will be used to populate (bind) HTML Table from JSON data (array). First the JSON data (array of JSON objects) is generated and then it is used to populate (bind) HTML Table using the AngularJS ng-repeat directive.
🌐
JSFiddle
jsfiddle.net › angularJS › rb3sj
Load JSON data and display in HTML table using Angular - JSFiddle - Code Playground
Adding External Resources will no longer create a list of resources in the sidebar but will be injected as a LINK or SCRIPT tag inside of the HTML panel. The Code Completion will now also have the context of all panels before suggesting code to you - so if for example you have some CSS or JS, the HTML panel will suggest code based on the other two panels.
🌐
GitHub
github.com › sivsivsree › angular-json-table
GitHub - sivsivsree/angular-json-table: Angular component to populate JSON to table in angular.
@NgModule({ declarations: [ ... [AppComponent] }) export class AppModule { } In your custom.component.html add data-table to render the table from the JSON ·...
Starred by 4 users
Forked by 2 users
Languages   TypeScript 78.2% | HTML 8.5% | SCSS 8.5% | JavaScript 4.8% | TypeScript 78.2% | HTML 8.5% | SCSS 8.5% | JavaScript 4.8%
🌐
JSFiddle
jsfiddle.net › mjaric › pJ5BR
Render json in table using AngularJs - JSFiddle - Code Playground
We've added the ability to download a specific fiddle version from the Editor's interface. I'll be downloaded as a Zipped single HTML file.
🌐
GeeksforGeeks
geeksforgeeks.org › angularjs › how-to-display-static-json-data-in-table-in-angular
How to display static JSON data in table in Angular ? - GeeksforGeeks
April 28, 2025 - Step 1: Create an Angular application using the following command. ... Step 2: After creating your project folder i.e. appname, move to it using the following command. ... Example 1: In this example, we will use a normal bootstrap table to display the static JSON data. We will be iterating over the JSON object using keyvalue. ... <!-- app.component.html ...
🌐
YouTube
youtube.com › watch
How to Map JSON Data to Your Angular Component's HTML Table - YouTube
Learn how to easily map your JSON data to an Angular component's HTML table with this step-by-step guide. Perfect for beginners and experienced developers!--...
Published   October 9, 2025
Views   1
🌐
npm
npmjs.com › package › angular-json-table
angular-json-table - npm
December 9, 2018 - Angular JSON Table is an Angular 2+ module to populate tables from the JSON data provided. Latest version: 0.0.6, last published: 7 years ago. Start using angular-json-table in your project by running `npm i angular-json-table`. There are no ...
      » npm install angular-json-table
    
Published   Dec 09, 2018
Version   0.0.6
Author   Siv S
🌐
Blogger
davidlearns.blogspot.com › 2016 › 10 › bind-json-data-to-html-table-with.html
David Learns: Bind json data to html table with Angular 2
October 26, 2016 - Here I come again! In this example I will show how to bind a JSON file with an html table with Angular2 (the new version of AngularJS, b...