generated from nhcarrigan/template
feat: we have a functional prototype
This commit is contained in:
18
client/src/app/inputs/single-line/single-line.component.ts
Normal file
18
client/src/app/inputs/single-line/single-line.component.ts
Normal file
@ -0,0 +1,18 @@
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { Component, input } from "@angular/core";
|
||||
import { type FormControl, ReactiveFormsModule } from "@angular/forms";
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Component({
|
||||
imports: [ CommonModule, ReactiveFormsModule ],
|
||||
selector: 'app-single-line',
|
||||
styleUrl: './single-line.component.css',
|
||||
templateUrl: "./single-line.component.html",
|
||||
})
|
||||
export class SingleLineComponent {
|
||||
public type = input.required<"text" | "email" | "number">();
|
||||
public label = input.required<string>();
|
||||
public control = input.required<FormControl>();
|
||||
}
|
Reference in New Issue
Block a user