hii,
i am not getting any error in my console of chrome browser but i am
not able to display data from json in my controller in my html table .the
code is shown below:-
///js part
var myApp=angular.module("trackApp",[]);
myApp.controller( "TrackCtrl",function($scope){
$scope.track=[
{
name:"surendra",
gender:"male",
height:"5'10",
occupation:"software"
},
{
name:"kishore",
gender:"male",
height:"5'9",
occupation:"software developer"
},
{
name:"abrar",
gender:"male",
height:"5'11",
occupation:"software designer"
},
{
name:"irfan",
gender:"male",
height:"6'1",
occupation:"software examiner"
},
{
name:"prasad",
gender:"male",
height:"5'10",
occupation:"software administrator"
}
];
});
//my html part
<https://lh3.googleusercontent.com/-4MJAEXEfYts/VJP5lK5vSSI/AAAAAAAAAJE/F8Tv7pGNTPE/s1600/gp1.png>
<table class="table table-striped">
<thead>
<tr>
<th>name</th>
<th>gender</th>
<th>Height</th>
<th>occupation</th>
</tr>
</thead>
<tbody>
<div ng-controller="TrackCtrl">
<tr ng-repeat="info in track">
<td>{{info.name}}</td>
<td>{{info.gender}}</td>
<td>{{info.height}}</td>
<td>{{info.occupation}}</td>
</tr>
</div>
</tbody>
</table>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.