ソースを参照

se creo un nuevo modelo de productos

yadid rosell 3 ヶ月 前
コミット
d3e3892f3c
共有1 個のファイルを変更した10 個の追加0 個の削除を含む
  1. 10 0
      src/models/Producto.models.ts

+ 10 - 0
src/models/Producto.models.ts

@@ -0,0 +1,10 @@
+export class Producto {
+  id: number|undefined; 
+  nombre: string|undefined;
+  precio: string|undefined;
+  existencia: number|undefined;
+
+  constructor(json?: Partial<Producto>) {
+    Object.assign(this, json);
+  }
+}