/** * This file is part of Anis Client. * * @copyright Laboratoire d'Astrophysique de Marseille / CNRS * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core'; /** * @class * @classdesc Attribute label component. */ @Component({ selector: 'app-attribute-label', templateUrl: 'attribute-label.component.html', changeDetection: ChangeDetectionStrategy.OnPush }) export class AttributeLabelComponent implements OnInit { @Input() label: string; @Input() description: string; @Input() form_label?: string; name: string = null; ngOnInit() { this.name = this.form_label ? this.form_label : this.label; }; }