ng-table-to-csv =============== [](https://travis-ci.org/kollavarsham/ng-table-to-csv) [](https://codeclimate.com/github/kollavarsham/ng-table-to-csv)  ## Angular.js Module for exporting Tables to CSV As opposed to [the forked library](https://github.com/esvit/ng-table-export), this version does not have a dependency on `ng-table` and can export any HTML table. ## Demo [Live Demo on Plunker](http://plnkr.co/Y0r33F) ## Getting Started / Usage Install module via bower (or download the files from the `dist` folder in the repo): ```shell bower install ng-table-to-csv --save ``` Add a reference to `dist/ng-table-to-csv.js` into your HTML pages. Add `ngTableToCsv` as a dependency to your module: ```js angular.module('your_app', ['ngTableToCsv']); ``` Add `export-csv` attribute directive on the `table` to define a new `csv` object on the scope with `generate()` and `link()` functions on them. Options: - Use the `separator` attribute to change the default comma separator into something else (like semicolon). - Use the `export-csv-ignore` attribute to set the selector that will be used for prevent `tr`/`th`/`td` to be stringified. To create an `Export` button from an anchro tag, use the `generate()` and `link()` functions mentioned above from `ng-click` and `ng-href` attributes of an anchor tag. See below: ```html Export