I am new to anglarJs and have the following angular js controller with this fixed data
app.controller('sortController',function($scope){
$scope.sortType = 'name'; //Setting the default sort type
$scope.sortReverse = false; // Setting the deafult sort order
$scope.searchDefaultTerm = ''; //Setting the default search/filter term
$scope.users =
[
{
"id":1,
"firstName":"Axil",
"lastName":"Creations",
"email":"[email protected]",
"image":"http://localhost:8000/backend/libraries/Filemanager-master/userfiles/UserImages/user.png",
"status":1,
"userRole":13,
"roleTitle":"Admin"
}
];
});
this is my view
<tr data-ng-repeat="user in users">
<th>@{{ user.id }}</th>
<th>@{{ user.firstName }}</th>
<th>@{{ user.lastName }}</th>
<th>@{{ user.email }}</th>
<th>@{{ user.image }}</th>
<th>@{{ user.status }}</th>
<th>@{{ user.roleTitle }}</th>
</tr>
everything is working fine but as soon as I send the same data via php I get error Below is my angular js controller code when I send data from php, the member variable is set in the php's controller where I have used JeffreyWay PHP-Vars-To-Js-Transformer to assign the data to javascript memeber variable although the member variable and my fixed data look same still I am having problems I have provided the screenshots to show the data are same.
app.controller('sortController',function($scope){
$scope.sortType = 'name'; //Setting the default sort type
$scope.sortReverse = false; // Setting the deafult sort order
$scope.searchDefaultTerm = ''; //Setting the default search/filter term
$scope.users = members;
});

I have done <tr data-ng-repeat="user in users track by $index"> but now I am not receiving my data and I am getting a hude number of empty rows as shown below

The sreenshots shows that you only have one element in the array ? The error is probably somewhere else because there is obviously no duplicates.