ngComponentUtility icon indicating copy to clipboard operation
ngComponentUtility copied to clipboard

Component configuration in base class

Open ipatalas opened this issue 7 years ago • 0 comments

Split from #16

The following configuration does not work:

export abstract class BaseComponent implements ng.IComponentOptions {
    constructor(public controller: ng.Injectable<ng.IControllerConstructor>) {
    }

    public template: string = require("./template.html");
}

export class TestComponent extends BaseComponent {
    constructor() {
        super(TestController);
    }
}

export class TestController {
}

When part of the component's configuration is in a base class it won't be detected. Controller passed to base class constructor does not work as well.

ipatalas avatar Jun 15 '17 22:06 ipatalas