lucassus / angular-coffee-seed

AngularJS seed based on grunt JavaScript tasks runner and bower a package manager for the web

Home Page:http://lucassus-angular-seed.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can we add two arrays value in single ng-grid

rampatel opened this issue · comments

i have two arrays one is myData and other is Data,how to show both arrays value in single ng-grid?
$scope.Data = [{city: "Moroni", mobile: 50},
{city: "a", mobile: 1},
{city: "b", mobile: 2},
{city: "c", mobile: 3},
{city: "d", mobile: 4}];
$scope.myData = [{name: "Moroni", age: 50},
{name: "Tiancum", age: 43},
{name: "Jacob", age: 27},
{name: "Nephi", age: 29},
{name: "Enos", age: 34}];
$scope.gridOptions = {
data: 'myData',
columnDefs: [{field: 'name', displayName: 'Name'}, {field:'age', displayName:'Age'}]
};