Hi All,

             I am using ng-table with so if I have not the name field in 
the row data it does not work.
             Is it neccessary to have name field in the row data for 
ng-table.
             Please help me.
             Example :
             var users = [
     {id:1, name:"", login:"UI1313", email:"[email protected]"}
              ];
             var columns =[
               { title: 'ID', field: 'id', visible: true, visible: true },
               { title: 'Login', field: 'login', visible: true, visible: 
true },
               { title: 'Email', field: 'email', visible: true, visible: 
true }];

<table ng-table="tableParams" show-filter="true" class="table">            
         
 <tr ng-repeat="user in $users">
            <td ng-repeat="column in columns" ng-show="column.visible" 
sortable="column.field" filter="column.filter">
                {{user[column.field]}}
            </td>

               </tr>
           </table>

                     works but did not work if i had users array like:
                                  var users = [
     {id:1, login:"UI1313", email:"[email protected]"}
              ];

                     why?
Regards,
Pushpendra

-- 
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/groups/opt_out.

Reply via email to