From 9c87e85a0c7ee8fe79fda040fece7b2df9511d23 Mon Sep 17 00:00:00 2001 From: mpuebla Date: Mon, 12 Aug 2019 13:13:45 -0300 Subject: [PATCH] Agregado componente popover. --- src/app/components/inicio/inicio.component.html | 81 +++++++++++-------------- src/app/components/inicio/inicio.component.ts | 15 ++++- 2 files changed, 48 insertions(+), 48 deletions(-) diff --git a/src/app/components/inicio/inicio.component.html b/src/app/components/inicio/inicio.component.html index ece77da..b171c9e 100644 --- a/src/app/components/inicio/inicio.component.html +++ b/src/app/components/inicio/inicio.component.html @@ -11,32 +11,6 @@
- -
-
-

Este producto forma parte de Combos y Promociones

-
-
-
- -
-
-
-

Promo 2 x 1

-

2 Coca-cola 1.5 lt

-
-
-

{{105 | currency}}

-
-
-
- -
-
-
-
-
@@ -83,33 +57,50 @@

Arme su pedido y solo pase a retirar.

- +
-
-
-
-
-

Cargar Productos

-
-
- + + + + +
+
+
+
+
+

Cargar Productos

+
+
+ +
+

+ Coloque el código de
+ barras o QR frente al scanner. +

-

- Coloque el código de
- barras o QR frente al scanner. -

-
-
- -
-

Galletas Oreo x117 grs Chocolate.

-

COD. 12121222

+
+ +
+

Galletas Oreo x117 grs Chocolate.

+

COD. 12121222

+
diff --git a/src/app/components/inicio/inicio.component.ts b/src/app/components/inicio/inicio.component.ts index 9ca5203..068c5d9 100644 --- a/src/app/components/inicio/inicio.component.ts +++ b/src/app/components/inicio/inicio.component.ts @@ -1,5 +1,8 @@ -import { Component, OnInit } from '@angular/core'; +import { Component, OnInit, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; +import { PopoverDirective } from 'ngx-bootstrap'; +import { appSettings } from 'src/etc/AppSettings'; + @Component({ selector: 'app-inicio', @@ -8,13 +11,19 @@ import { Router } from '@angular/router'; }) export class InicioComponent implements OnInit { - constructor(private router: Router) { } + @ViewChild('pop', { static: false }) popoverDirective: PopoverDirective; + apiUrl : string = appSettings.apiUrl - tooltip:boolean = false; + constructor(private router: Router) { } ngOnInit() { } + open() { + + this.popoverDirective.show(); + } + private goPage(pageUrl) { this.router.navigate([pageUrl]); } -- 1.9.1