title: Upload excel files and consume data
body: <p>I'm trying to create a moule where the user can upload an excel file an get data from the document. I'm using the <a href="https://github.com/SheetJS/js-xlsx" rel="nofollow noreferrer">js-xlsx</a> library. Right now, with the next code, i'm getting the info on the console of my example file as a json:</p>
  
  <pre><code>$scope.ExcelExport= function (event) {
  
      var input = event.target;
      var reader = new FileReader();
      reader.onload = function(){
          var fileData = reader.result;
          var wb = XLSX.read(fileData, {type : 'binary'});
  
          wb.SheetNames.forEach(function(sheetName){
          var rowObj = XLSX.utils.sheet_to_json(wb.Sheets[sheetName]);
          $scope.jsonObj = rowObj;
          console.log($scope.jsonObj);
          })
  
      };
      reader.readAsBinaryString(input.files[0]);
      };
  </code></pre>
  
  <p>I know i have to save the document, but: there's a way to stored the readed info on my console and show it on the html view?</p>
  
  <p>Per example, let's say that my example file have the next data in two columns:</p>
  
  <p>Person | Job      |(This is the header)
  Chuck  | Developer|
  John   | Teacher  |</p>
  
  <p>And i want to populate a table:</p>
  
  <pre><code>&lt;div class="row"&gt;
  &lt;div class="col-lg-11"&gt;
      &lt;form class="form-inline"&gt;
          &lt;div class="am form-group"&gt;
          &lt;/div&gt;
          &lt;div class="container"&gt;
              &lt;table class="table table-hover"&gt;
                  &lt;thead&gt;
                  &lt;tr&gt;
                      &lt;th&gt;Person&lt;/th&gt;
                      &lt;th&gt;Job&lt;/th&gt;
                  &lt;/tr&gt;
                  &lt;/thead&gt;
                  &lt;tbody&gt;
                  &lt;tr ng-repeat="x in jsonObj"&gt;
                      &lt;th&gt;{{x.Person}}&lt;/th&gt;
                      &lt;th&gt;{{x.Job}}&lt;/th&gt;
                  &lt;/tr&gt;
                  &lt;/tbody&gt;
              &lt;/table&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>I'm using angularjs and Javascript.</p>
  
  <p>Thanx in advance!</p>