asafdav / ng-csv

Simple directive that turns arrays and objects into downloadable CSV files
MIT License
573 stars 215 forks source link

default options object when none is provided #211

Open DavidVotrubec opened 7 years ago

DavidVotrubec commented 7 years ago

This solves the issue #210

DavidVotrubec commented 7 years ago

More robust solution would be to use something like this:

var mergedOptions = angular.extend({}, defaultOptions, userSuppliedOptions)