Dear all,
I have a problem while printing angular js object data in table through ng-repeat.
I am not getting the output, Someone please help me.
below is my code
Controller code is here:
///
var Myapp = angular.module("Mymodule", []);
Myapp.controller("mycontrol", function ($scope) {
$scope.Students = [{
Name: "Ankit Kumar",
Course: "B.Tech",
City: "New Delhi",
Contact: "9718619932",
Photo:"/Images/Ankit Kumar.jpg"
},{
Name: "Amit Kumar Chaurasiya",
Course: "MCA",
City: "Allahabad",
Contact: "9818762920",
Photo: "/Images/Koala.jpg"
}, {
Name: "Swati",
Course: "PGDCA",
City: "Kanpur",
Contact: "7604183039",
Photo: "/Images/swati.jpg"
}
];
});
HTML Code is here:
| Name | Course | City | Contact | Photo |
|---|---|---|---|---|
| {{Student.Name}} | {{Student.Course}} | {{Student.City}} | {{Student.Contact}} |

Laxmikanth OPosted Jan 19, 2017, 11:49 AM
Pradeep SinghPosted Jan 24, 2017, 3:55 PM