Table-Form-Data-By-NgRepeat

 
 
 
<!DOCTYPE html> <html lang="en-US"> <head> <title>Welcome in the Angular JS</title> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" /> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0-rc.1/angular.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> </head> <body ng-app="sampleApplication"> <div ng-controller="sampleController"> <div class="container"> <table class="table table-striped"> <thead> <tr> <th>Name</th> <th>Age</th> <th>Phone Number</th> <th>Action</th> </tr> </thead> <tbody> <tr ng-repeat="emp in employees"> <td>{{emp.name}}</td> <td>{{emp.age}}</td> <td>{{emp.phoneNumber}}</td> <td><button class="btn btn-primary btn-xs">Edit</button> &nbsp; <button class="btn btn-danger btn-xs">Delete</button></td> </tr> </tbody> </table> </div> </div> <script> var app = angular.module('sampleApplication', []); app.controller('sampleController', function ($scope) { $scope.employees = [{ name: "Carroll", age: "25", phoneNumber: "563544466" }, { name: "Watson", age: "34", phoneNumber: "657865856" }, { name: "Bryson", age: "27", phoneNumber: "679423435" }, { name: "Carlin", age: "25", phoneNumber: "343667789" }]; }); </script> </body> </html>
Output