Ng repeat не работает
ng-repaeat не работает в angular.
Что я уже пробовал:
<!DOCTYPE html> <html> <head> <script src="scripts/angular.min.js"></script> <script src="scripts/JavaScript1.js"></script> <title></title> </head> <body> <div ng-app="mymodule" ng-controller="mycontroler"> <table> <thead> <tr> <td> First Name </td> <td> Seconed Name </td> <td> Address </td> </tr> </thead> <tbody > <tr ng-repeat ="employee in emp"> <td> employee.Fname </td> <td> employee.Sname </td> <td> employee.address </td> </tr> </tbody> </table> </div> </body> </html>
/// <reference path="angular.min.js" /> var app = angular.module("mymodule", []).controller("mycontroler", function () { var emp = [{ Fname: "vikrant", Sname: "gupta", address: "ganj" }, {Fname:"arpit", Sname:"gupta", address:"ganj" } ]; $scope.emp = emp; });
пожалуйста, помогите