<!DOCTYPE html> <html lang="en" ng-app="myModule"> <head> <meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1"/> <link rel="stylesheet" type="text/css" href="css/bootstrap.css"/> </head> <body ng-controller="myController"> <nav class="navbar navbar-default"> <div class="container-fluid"> </div> </nav> <div class="col-md-6 well"> <hr style="border-top:1px dotted #ccc;" /> <br /> <div class="col-md-7"> <div class="form-inline"> </div> <table class="table table-bordered"> <thead class="alert-info"> <tr> </tr> </thead> <tbody> <tr ng-repeat="member in members"> </tr> </tbody> </table> </div> </div> </body> </html>
var app=angular.module("myModule", []) .controller("myController", function($scope){ var members=[ {firstname: "John", lastname: "Smith", address: "New York"}, {firstname: "Claire", lastname: "Temple", address: "Racoon City"} ]; $scope.members=members; });