Skip to content
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
@koalalam

Description

@koalalam

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

Can you share your code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions