This repository was archived by the owner on Feb 2, 2025. It is now read-only.
This repository was archived by the owner on Feb 2, 2025. It is now read-only.
Angular Way - Doesn't support '$' char in controller variable #916
Closed
Description
What versions you are using?
- jquery version:
- datatables version:
- angular-datatables version: 0.5.5
What's the problem?
Angular Way doesn't work when '$' char is used in controller variable while '$ctrl' is the default value of controller in Angular Component (https://docs.angularjs.org/guide/component#comparison-between-directive-definition-and-component-definition).
The regex doesn't match here: https://github.com/l-lin/angular-datatables/blob/v0.5.5/dist/angular-datatables.js#L892
One workaround is to override the default controller name e.g. controllerAs: ctrl