Skip to content

class constructors must be invoked with |new| #159

@fstodulski

Description

@fstodulski

Hello.
I have a problem with my component's code.

I use this styleguid to build my app.
export const SidebarComponent = { templateUrl: '../app/components/common/sidebar/sidebar.component.html', controller: class SidebarComponentController { constructor() { } $onInit() { this.list = [] } } }

It works on Chrome and Safari but on Firefox it throws me an error:
class constructors must be invoked with |new|

I there any way to fix it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions