2026-04-27 21:53:11 +03:30
|
|
|
import { Component, Input } from '@angular/core';
|
|
|
|
|
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
|
|
|
import { InputComponent } from '../input/input.component';
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'field-terminal',
|
2026-05-19 20:34:20 +03:30
|
|
|
template: `<app-input label="پرداخت با پوز" [control]="control" [name]="name" type="price" />`,
|
2026-04-27 21:53:11 +03:30
|
|
|
imports: [ReactiveFormsModule, InputComponent],
|
|
|
|
|
})
|
|
|
|
|
export class TerminalComponent {
|
|
|
|
|
@Input({ required: true }) control = new FormControl<string>('');
|
|
|
|
|
@Input() name = 'terminal';
|
|
|
|
|
}
|