20 lines
554 B
TypeScript
20 lines
554 B
TypeScript
import { Component, Input } from '@angular/core';
|
|
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
import { InputComponent } from '../input/input.component';
|
|
|
|
@Component({
|
|
selector: 'field-fiscal-id',
|
|
template: `<app-input
|
|
label="شناسه یکتا"
|
|
[control]="control"
|
|
[name]="name"
|
|
[length]="6"
|
|
[isLtrInput]="true"
|
|
/>`,
|
|
imports: [ReactiveFormsModule, InputComponent],
|
|
})
|
|
export class FiscalIdComponent {
|
|
@Input({ required: true }) control = new FormControl<string>('');
|
|
@Input() name = 'fiscal_id';
|
|
}
|