/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; import { NgdTabbedService } from '../../../@theme/services'; @Component({ selector: 'ngd-api-block', template: `

{{ source.name }}

`, changeDetection: ChangeDetectionStrategy.OnPush, }) export class NgdApiBlockComponent { @Input('source') source; constructor(private tabbedService: NgdTabbedService) { } hasMethods(component) { return this.tabbedService.componentHasMethods(component); } hasProps(component) { return this.tabbedService.componentHasProps(component); } }