Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

$controller cannot instantiate ES6 classes #12614

Closed
@trevorade

Description

@trevorade

ES6 classes can only be instantiated using new. $controller uses $injector to instantiate the classes which even after this fix: #12598 uses fn.apply.

In particular, this should work when bindToController is used.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions