first commit

This commit is contained in:
2025-11-13 18:01:21 +01:00
parent 163b734dd1
commit c75199b236
2 changed files with 46 additions and 3 deletions

View File

@@ -1 +1,4 @@
<p>stock works!</p>
<nz-table #basicTable [nzData]="listOfData">
<thead>
</thead>

View File

@@ -1,11 +1,51 @@
import { Component } from '@angular/core';
import {NzTableComponent} from "ng-zorro-antd/table";
@Component({
selector: 'app-stock',
imports: [],
imports: [
NzTableComponent
],
templateUrl: './stock.html',
styleUrl: './stock.css',
})
export class Stock {
class StockInfo {
id: number;
name: string;
Duration: string;
Caliber: string;
Quantity: number;
Weight: number;
Nec: string;
MinimalQuantity: number;
}
export class Stock {
listOfData: StockInfo[] = [
{
id: 1,
name: 'Stock 1',
Duration: '10 days',
Caliber: '100g',
Quantity: 100,
Weight: 1000,
Nec: '5kg',
MinimalQuantity: 5
},
{
id: 2,
name: 'Stock 2',
Duration: '20 days',
Caliber: '200g',
Quantity: 200,
Weight: 2000,
Nec: '10kg',
MinimalQuantity: 10
}
];
delete(){
return
}
}