I want to create a dynamic data table in angular js which has first column with check box. The data would be in Json format as below,
$scope.items = [
{ "id": "1", "lastName": "Test1", "firstName": "Test", "email": "[email protected]" },
{ "id": "2", "lastName": "Test2", "firstName": "Test", "email": "[email protected]" },
{ "id": "3", "lastName": "Test3", "firstName": "Test", "email": "[email protected]" },
{ "id": "4", "lastName": "Test4", "firstName": "Test", "email": "[email protected]" },
{ "id": "5", "lastName": "Test5", "firstName": "Test", "email": "[email protected]" }
];
The id would be a column with checkbox and all other columns will have the data in it. The headers of the table are also dynamic and so does the column.