I want to show the excel file on UI, I would be getting the excel file path
from MongoDB. I want to show this file on UI
I tried github.com/SheetJS/js-xlsx and was able to get the excel data in
JSON format on UI, but I need to show the excel data in grid.
So for this, I used ui-grid like this in my HTML:
<div class="gridStyle" ui-grid="gridOptions">
Controller:
app.controller('MyCtrl', function($scope) {
$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' };
});//Passed some hard code values here,
I need to pass the excel data instead of this data, but through js-xlsx I
am getting the JSON data on UI itself, how to pass this values to ui-grid.?
So, that i can show the excel data in grid on UI.
Please help me on this. Need help on this.
--
You received this message because you are subscribed to the Google Groups
"Angular" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.