OpenSlides/client/src/app/slides/base-slide-component.ts

25 lines
619 B
TypeScript

import { Input } from '@angular/core';
import { ViewProjector } from 'app/site/projector/models/view-projector';
import { SlideData } from 'app/core/core-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>;
/**
* The projector where this slide is projected on.
*/
@Input()
public projector: ViewProjector;
public constructor() {}
}