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|
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 ?