demo/src/app/docs/demo-section-components/demo-top-section/demo-top-section.component.ts
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { ContentSection } from '../../models/content-section.model';
import { ComponentsTopSection } from '../../models/components-top-section.model';
@Component({
selector: 'demo-top-section',
templateUrl: './demo-top-section.component.html',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class DemoTopSectionComponent {
sectionContent: ComponentsTopSection;
constructor(public section: ContentSection) {
this.sectionContent = section.content as ComponentsTopSection;
}
}