import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; import { NgxTabbedService } from '../../../@theme/services/tabbed.service'; @Component({ selector: 'ngx-component-block', template: `

Theme

`, changeDetection: ChangeDetectionStrategy.OnPush, }) export class NgxComponentBlockComponent { source: any; overview: any[] = []; @Input('source') set setSource(source: any) { this.source = source; this.overview = source.overview; } constructor(private tabbedService: NgxTabbedService) { } hasTheme(component) { return this.tabbedService.componentHasTheme(component); } hasMethods(component) { return this.tabbedService.componentHasMethods(component); } hasProps(component) { return this.tabbedService.componentHasProps(component); } }