valor-software/ng2-bootstrap

View on GitHub
demo/src/app/docs/demo-section-components/demo-top-section/demo-top-section.component.ts

Summary

Maintainability
A
0 mins
Test Coverage
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;
  }
}