Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 740 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 740 Bytes

README - angularjs-exportcvs

Project requirement

  • npm > 3.x.x

Environment setup

  • git clone https://github.com/pratikq23/angularjs-exportcsv
  • cd angularjs-exportcsv
  • npm install
  • npm run

To use this directive in your code

    1. Copy app/directive/exportToCsv.js to your directives folder
    1. Add this to your module
angular.module('myApp', [
  'tableCSV',
]).
    1. Include this to your index.html or import the directive, whatever is your project architecture:
<script src='directive/exportToCsv.js'></script>
    1. Add this to a button tag:
<button export-to-csv>Generate Report</button>

Enjoy the export file functionality