diff --git a/src/app/components/popover/popover.component.html b/src/app/components/popover/popover.component.html index f514afe..3222193 100644 --- a/src/app/components/popover/popover.component.html +++ b/src/app/components/popover/popover.component.html @@ -1,6 +1,6 @@
-
+

Este producto forma parte
de Combos y Promociones @@ -8,16 +8,24 @@

-
-
-
-
-
-

Promo 2x1

-

{{popoverContent}}

-
-
-

{{28 | currency}}

+
+
+
+
+
+
+

{{promo.nombrePromo}}

+

+ {{producto.DetArt}} +

+
+
+

{{28 | currency}}

+
diff --git a/src/app/components/popover/popover.component.ts b/src/app/components/popover/popover.component.ts index 1d3716b..f509b4a 100644 --- a/src/app/components/popover/popover.component.ts +++ b/src/app/components/popover/popover.component.ts @@ -1,5 +1,6 @@ import { Component, OnInit, Input } from '@angular/core'; import { PopoverDirective } from 'ngx-bootstrap/popover'; +import { Promocion } from 'src/app/wrappers/promocion'; @Component({ selector: 'app-popover', @@ -9,7 +10,7 @@ import { PopoverDirective } from 'ngx-bootstrap/popover'; export class PopoverComponent implements OnInit { @Input() popover: PopoverDirective; - @Input() popoverContent: string; + @Input() popoverContent: Promocion[]; constructor() { }