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