Skip to content
Snippets Groups Projects
detail.component.ts 505 B
Newer Older
  • Learn to ignore specific revisions
  • import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
    
    import { RendererConfig } from "../../../metamodel/model";
    
    interface DetailConfig extends RendererConfig {
        display: string;
        blank: boolean;
    }
    
    @Component({
        selector: 'app-detail',
        templateUrl: 'detail.component.html',
        changeDetection: ChangeDetectionStrategy.OnPush
    })
    export class DetailComponent {
        @Input() value: string | number;
        @Input() datasetName: string;
        @Input() config: DetailConfig;
    }