import { ChangeDetectionStrategy , Component , Input } from '@angular/core' ; import { filterApiList } from '../../utils/api-blacklist' ; @ Component ( { selector : 'ng-module-config-view' , templateUrl : './ng-module-config-view.html' , styleUrls : [ './ng-module-config-view.css' ] , changeDetection : ChangeDetectionStrategy . OnPush } ) export class NgModuleConfigView { @ Input ( ) private config : { [ key ] : Array < string > ; } ; @ Input ( ) public moduleName : string ; keys : Array < string > = [ 'imports' , 'exports' , 'providers' , 'declarations' , 'providersInDeclarations' ] ; hideAngularApis : boolean = true ; constructor ( ) { } private keysList = ( hideAngularApis , listToFilter ) : Array < string > => { return hideAngularApis ? filterApiList ( listToFilter ) : listToFilter ; } ; }