import { ApplicationRef, Component, Inject } from '@angular/core'; import { GenericComponent } from '@leanup/lib'; import { CreateSerieController } from './controller'; @Component({ selector: 'create-serie', template: `
`, }) export class CreateSerieComponent implements GenericComponent { public readonly ctrl: CreateSerieController; public constructor(@Inject(ApplicationRef) appRef: ApplicationRef) { this.ctrl = new CreateSerieController({ hooks: { doRender: appRef.tick.bind(this), }, }); } }