diff --git a/src/app/components/stock-form/stock-form.css b/src/app/components/stock-form/stock-form.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/components/stock-form/stock-form.html b/src/app/components/stock-form/stock-form.html new file mode 100644 index 0000000..d9bcb69 --- /dev/null +++ b/src/app/components/stock-form/stock-form.html @@ -0,0 +1,12 @@ +
\ No newline at end of file diff --git a/src/app/components/stock-form/stock-form.ts b/src/app/components/stock-form/stock-form.ts new file mode 100644 index 0000000..c378450 --- /dev/null +++ b/src/app/components/stock-form/stock-form.ts @@ -0,0 +1,38 @@ +import { Component } from '@angular/core'; +import {FormControl, FormGroup, ReactiveFormsModule, Validators} from "@angular/forms"; +import {NzFormControlComponent, NzFormDirective, NzFormItemComponent, NzFormLabelComponent} from "ng-zorro-antd/form"; +import {NzInputDirective} from "ng-zorro-antd/input"; +import {NzColDirective} from "ng-zorro-antd/grid"; +import {NzFlexDirective} from "ng-zorro-antd/flex"; + +@Component({ + selector: 'app-stock-form', + imports: [ + NzFormItemComponent, + NzFormLabelComponent, + NzFormControlComponent, + NzInputDirective, + NzColDirective, + NzFormDirective, + ReactiveFormsModule, + NzFlexDirective + ], + templateUrl: './stock-form.html', + styleUrl: './stock-form.css', +}) +export class StockForm { + stockForm = new FormGroup({ + minQuantity: new FormControl