Commit cfbb92b6f62e3751c4df7db3b824d50c47541b8f
1 parent
788185d75f
Exists in
master
Se usan imagenes de la api.
Showing
2 changed files
with
5 additions
and
2 deletions
Show diff stats
src/app/components/confirmacion-carrito/confirmacion-carrito.component.html
... | ... | @@ -21,7 +21,7 @@ |
21 | 21 | <div class="row pr-3 vh-50 overflow-scroll"> |
22 | 22 | <div class="col-4 p-2" *ngFor="let producto of productos"> |
23 | 23 | <div class="card card-effect bg-white rounded-sm shadow border-0"> |
24 | - <img src="../../../assets/img/descarga.jpg" class="card-img-top w-75 m-auto"> | |
24 | + <img src="{{apiUrl}}/imagenes/{{producto.nombreImagen}}" class="card-img-top w-75 m-auto"> | |
25 | 25 | <div class="card-body"> |
26 | 26 | <p class="h5 text-left m-0">{{producto.variable}}</p> |
27 | 27 | <div class="text-left"> |
src/app/components/confirmacion-carrito/confirmacion-carrito.component.ts
1 | 1 | import { Component, OnInit } from '@angular/core'; |
2 | +import { appSettings } from 'src/etc/AppSettings'; | |
2 | 3 | |
3 | 4 | @Component({ |
4 | 5 | selector: 'app-confirmacion-carrito', |
... | ... | @@ -7,7 +8,9 @@ import { Component, OnInit } from '@angular/core'; |
7 | 8 | }) |
8 | 9 | export class ConfirmacionCarritoComponent implements OnInit { |
9 | 10 | |
10 | - productos = [{}, {}, {}] | |
11 | + productos = [{}, {}, {}]; | |
12 | + private apiUrl: string = appSettings.apiUrl; | |
13 | + | |
11 | 14 | constructor() { } |
12 | 15 | |
13 | 16 | ngOnInit() { |