From 01f3e07a6f7c47bdddba57b4da8c1b998cd02aed Mon Sep 17 00:00:00 2001 From: Eric Fernandez Date: Thu, 15 Aug 2019 16:39:26 -0300 Subject: [PATCH] =?UTF-8?q?interface=20categor=C3=ADa2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/busqueda-productos/busqueda-productos.component.ts | 8 +------- src/app/wrappers/categoria.ts | 7 +++++++ 2 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 src/app/wrappers/categoria.ts diff --git a/src/app/components/busqueda-productos/busqueda-productos.component.ts b/src/app/components/busqueda-productos/busqueda-productos.component.ts index 17c669f..b545893 100644 --- a/src/app/components/busqueda-productos/busqueda-productos.component.ts +++ b/src/app/components/busqueda-productos/busqueda-productos.component.ts @@ -1,6 +1,7 @@ import { Component, OnInit, APP_BOOTSTRAP_LISTENER } from '@angular/core'; import { ProductoService } from 'src/app/services/producto.service'; import { Producto } from 'src/app/wrappers/producto'; +import { Categoria } from 'src/app/wrappers/categoria'; import { appSettings } from 'src/etc/AppSettings'; import { Router } from '@angular/router'; @@ -74,10 +75,3 @@ export class BusquedaProductosComponent implements OnInit { } } -interface Categoria { - id: number, - detalle: string, - es_promocion: boolean, - vigencia_desde: Date, - vigencia_hasta: Date -} diff --git a/src/app/wrappers/categoria.ts b/src/app/wrappers/categoria.ts new file mode 100644 index 0000000..0dd7119 --- /dev/null +++ b/src/app/wrappers/categoria.ts @@ -0,0 +1,7 @@ +export interface Categoria { + id: number, + detalle: string, + es_promocion: boolean, + vigencia_desde: Date, + vigencia_hasta: Date +} \ No newline at end of file -- 1.9.1