Просмотр исходного кода

se creo un nuevo modelo de productos

yadid rosell месяцев назад: 3
Родитель
Сommit
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);
+  }
+}