Epotignano / angular-export-table

Allow us us to export an HTML table to different types of documents.
13 stars 8 forks source link

Issue with table lookup #1

Open petrovskyy opened 9 years ago

petrovskyy commented 9 years ago

In case table is rendered later than directive initialisation ctrl.tableElement gonna be empty.

I would suggest moving table element lookup


if(elementScope.ctrl.tableSelector) {
   ctrl.tableElement = $document.find(elementScope.ctrl.tableSelector);
}
 

into function exportTable() or click handler

Epotignano commented 8 years ago

Could you create a PR without problem!