/** * @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 { NgxStylesService } from '../../../@theme/services/styles.service'; @Component({ selector: 'ngx-styles-table-block', template: `
Name {{ themedValue.theme }} Description
{{ item.name }} {{ themedValue.value }}

{{ item.shortDescription}}

{{ item.description }}

`, changeDetection: ChangeDetectionStrategy.OnPush, }) export class NgxStylesTableBlockComponent { classStyles: any; @Input('source') set setSource(source: any) { this.classStyles = this.stylesService.mapThemedValues(source.styles); } constructor(private stylesService: NgxStylesService) { } }