import { ChangeDetectionStrategy , Component , OnInit } from '@angular/core' ; import { VersionComponent } from '../../version/version/version.component' ; import { SectionComponent } from '../section/section.component' ; @ Component ( { selector : 'app-section-general' , templateUrl : './section-general.component.html' , styleUrls : [ './section-general.component.scss' ] , changeDetection : ChangeDetectionStrategy . OnPush , } ) export class SectionGeneralComponent implements OnInit { constructor ( private sectionComponent , private versionComponent ) { } ngOnInit ( ) { } get section ( ) { return this . sectionComponent . section ; } get version ( ) { return this . versionComponent . version ; } }