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

14 lines
524 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-vat',
template: `<app-input label="مالیات بر ارزش افزوده" [control]="control" [name]="name" type="price" />`,
imports: [ReactiveFormsModule, InputComponent],
})
export class VatComponent {
@Input({ required: true }) control = new FormControl<number | string>('');
@Input() name = 'VAT';
}