Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Re-render table error missing argument 'scope' #621

Closed
marcokorb opened this issue Feb 17, 2016 · 5 comments
Closed

Re-render table error missing argument 'scope' #621

marcokorb opened this issue Feb 17, 2016 · 5 comments
Labels
Milestone

Comments

@marcokorb
Copy link

Hi,

I'm using DTInstance.rerender() from defaultRenderer but with multiple calls I got a message in the console saying Argument 'scope' is required. First I thought that my code could be wrong so I decided to check the examples at http://l-lin.github.io/angular-datatables/#/rerender and the defaultRenderer example returned the same issue.

I'm trying to figure it out but no success until this post.

can someone help me?

Thanks

@l-lin l-lin added the bug label Feb 24, 2016
@l-lin l-lin added this to the v0.5.4 milestone Feb 24, 2016
@l-lin
Copy link
Owner

l-lin commented Feb 24, 2016

👍

@l-lin l-lin closed this as completed Feb 24, 2016
@andrecbr
Copy link

Some temporary fix?

@l-lin
Copy link
Owner

l-lin commented Feb 24, 2016

Either you apply the fix in your angular-datatables.js file, or you get the dev version.

@andrecbr
Copy link

Yep I apply the fix in angular-datatables.js file. Thanks for reply!

@alokps6295
Copy link

Yes I applyied the fix in the angular-datatable.js file by changing in render function
function rerender() {
oTable.destroy();
DTRendererService.showLoading(
$elem, $scope);
- render(
$elem);
+ render($elem,$scope);
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants