diff --git a/src/app/components/popover/popover.component.html b/src/app/components/popover/popover.component.html new file mode 100644 index 0000000..2eaaefa --- /dev/null +++ b/src/app/components/popover/popover.component.html @@ -0,0 +1,39 @@ +
+
+
+

+ Este producto forma parte
+ de Combos y Promociones +

+
+
+ +
+
+
+
+
+

Promo 2x1

+

{{popoverContent}}

+
+
+

{{28 | currency}}

+
+
+
+
+
+ +
+
+ +
+
+ +
\ No newline at end of file diff --git a/src/app/components/popover/popover.component.scss b/src/app/components/popover/popover.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/components/popover/popover.component.spec.ts b/src/app/components/popover/popover.component.spec.ts new file mode 100644 index 0000000..c5392f6 --- /dev/null +++ b/src/app/components/popover/popover.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { PopoverComponent } from './popover.component'; + +describe('PopoverComponent', () => { + let component: PopoverComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ PopoverComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(PopoverComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/popover/popover.component.ts b/src/app/components/popover/popover.component.ts new file mode 100644 index 0000000..1d3716b --- /dev/null +++ b/src/app/components/popover/popover.component.ts @@ -0,0 +1,23 @@ +import { Component, OnInit, Input } from '@angular/core'; +import { PopoverDirective } from 'ngx-bootstrap/popover'; + +@Component({ + selector: 'app-popover', + templateUrl: './popover.component.html', + styleUrls: ['./popover.component.scss'] +}) +export class PopoverComponent implements OnInit { + + @Input() popover: PopoverDirective; + @Input() popoverContent: string; + + constructor() { } + + ngOnInit() { + } + + hide() { + this.popover.hide(); + } + +}