OpenSlides/client/src/app/slides/base-slide-component.ts
2019-01-19 21:26:05 +01:00

17 lines
427 B
TypeScript

import { Input } from '@angular/core';
import { SlideData } from 'app/site/projector/services/projector-data.service';
/**
* Every slide has to extends this base class. It forces the slides
* to have an input for the slidedata.
*/
export abstract class BaseSlideComponent<T extends object> {
/**
* Each slide must take slide data.
*/
@Input()
public data: SlideData<T>;
public constructor() {}
}