Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Result is Null #34

Closed
joelcdoyle opened this issue Dec 16, 2015 · 1 comment
Closed

Result is Null #34

joelcdoyle opened this issue Dec 16, 2015 · 1 comment

Comments

@joelcdoyle
Copy link

Hello! I like the module. However, for some reason csv.result is always null, even though csv.content contains the contents of my CSV.

In my controller:

    $scope.csv = {
      content: null,
      header: true,
      headerVisible: true,
      separator: ',',
      separatorVisible: true,
      result: null,
      encoding: 'ISO-8859-1', //also tried utf8
      encodingVisible: true,
    };

    // this is trigged by a button press.
    // I wait a few seconds to make sure the file has had time to load
    $scope.showFile = function () {
      console.log($scope.csv.result); //null
    };

Does this mean there is something wrong with my CSV file?

@joelcdoyle
Copy link
Author

Whoops, I spelled the result attribute wrong: reesult

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant