Angular: Empty Fiddle

http://angularjs.org/

by Nitish Kumar

HTML

<script src="http://code.angularjs.org/angular-1.0.1.js"></script>
<div ng-controller="MyCtrl">
<table border="1">
    <tr>
        <th ng-repeat="(key, val) in items[0]">{{key}}</th>
    </tr>
    <tr ng-repeat="item in items">
        <td ng-repeat="(key, val) in item">{{val}}</td>
    </tr>
</table>
</div>

JavaScript

var myApp = angular.module('myApp',[]);

//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});

function MyCtrl($scope) {
    $scope.items = [{"email":"[email protected]","firstname":"navin","language":"Dutch","lastname":"sharma","phoneno":"343434343","_id":"6H4zxRGvgpQ3QruQg"},
    {"email":"[email protected]","firstname":"navin","language":"Dutch","lastname":"sharma","phoneno":"343434343","_id":"6H4zxRGvgpQ3QruQg"}];
    

$scope.items.forEach(function(v){ delete v._id });
    
}