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

14 lines
518 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-mobile-number',
template: `<app-input label="موبایل" [control]="control" [name]="name" type="mobile" />`,
imports: [ReactiveFormsModule, InputComponent],
})
export class MobileNumberComponent {
@Input({ required: true }) control = new FormControl<string>('');
@Input() name = 'mobile_number';
}