Skip to content

Commit

Permalink
Merge pull request #1 from iyel/fixed-ng-table-params
Browse files Browse the repository at this point in the history
Fix to correct scope
  • Loading branch information
Github committed Jan 26, 2015
2 parents 78c91a3 + e282591 commit 7eac40d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/00-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ angular.module('ngTableExport', [])
*/
generate: function(event, filename) {

var table = scope.$parent.tableParams,
var table = scope.params,
settings = table.settings(),
cnt = table.count(),
total = settings.total;
Expand Down Expand Up @@ -125,4 +125,4 @@ angular.module('ngTableExport', [])
$parse(attrs.exportCsv).assign(scope.$parent, csv);
}
};
}]);
}]);

0 comments on commit 7eac40d

Please sign in to comment.