Files
psp_panel/src/app/shared/components/fields/fiscal_code.component.ts
T

14 lines
519 B
TypeScript
Raw Normal View History

import { Component, Input } from '@angular/core';
import { FormControl, ReactiveFormsModule } from '@angular/forms';
import { InputComponent } from '../input/input.component';
@Component({
selector: 'field-fiscal-code',
template: `<app-input label="کد مالیاتی" [control]="control" [name]="name" type="number" />`,
imports: [ReactiveFormsModule, InputComponent],
})
export class FiscalCodeComponent {
@Input({ required: true }) control = new FormControl<string>('');
@Input() name = 'fiscal_code';
}