@leanup/cli-angular
Version:
This package contains the Angular framework extension for the @leanup/cli.
28 lines (24 loc) • 875 B
text/typescript
import { ApplicationRef, Component, Inject } from '@angular/core';
import { GenericComponent } from '@leanup/lib';
import { CreateSerieController } from './controller';
export class CreateSerieComponent implements GenericComponent {
public readonly ctrl: CreateSerieController;
public constructor( appRef: ApplicationRef) {
this.ctrl = new CreateSerieController({
hooks: {
doRender: appRef.tick.bind(this),
},
});
}
}