Commit f3b1df028341cb0b3253d0f208f8b669d8530c2d
1 parent
f41d49d9a2
Exists in
master
src de imagenes apuntando a la api.
Showing
2 changed files
with
5 additions
and
2 deletions
 
Show diff stats
src/app/components/header/header.component.html
| 1 | <div class="row bg-light p-4 justify-content-between"> | 1 | <div class="row bg-light p-4 justify-content-between"> | 
| 2 | <div class="col-auto"> | 2 | <div class="col-auto"> | 
| 3 | <img src="../../../assets/img/logoaxion.png" alt=""> | 3 | <img src="{{apiUrl}}/imagenes/logoaxion.png"> | 
| 4 | </div> | 4 | </div> | 
| 5 | <div class="col-auto"> | 5 | <div class="col-auto"> | 
| 6 | <img src="../../../assets/img/logodebo.png" alt=""> | 6 | <img src="{{apiUrl}}/imagenes/logodebo.png"> | 
| 7 | </div> | 7 | </div> | 
| 8 | </div> | 8 | </div> | 
| 9 | 9 | 
src/app/components/header/header.component.ts
| 1 | import { Component, OnInit } from '@angular/core'; | 1 | import { Component, OnInit } from '@angular/core'; | 
| 2 | import { appSettings } from 'src/etc/AppSettings'; | ||
| 2 | 3 | ||
| 3 | @Component({ | 4 | @Component({ | 
| 4 | selector: 'app-header', | 5 | selector: 'app-header', | 
| 5 | templateUrl: './header.component.html', | 6 | templateUrl: './header.component.html', | 
| 6 | styleUrls: ['./header.component.scss'] | 7 | styleUrls: ['./header.component.scss'] | 
| 7 | }) | 8 | }) | 
| 8 | export class HeaderComponent implements OnInit { | 9 | export class HeaderComponent implements OnInit { | 
| 9 | 10 | ||
| 11 | private apiUrl : string = appSettings.apiUrl; | ||
| 12 | |||
| 10 | constructor() { } | 13 | constructor() { } | 
| 11 | 14 | ||
| 12 | ngOnInit() { | 15 | ngOnInit() { | 
| 13 | } | 16 | } | 
| 14 | 17 | ||
| 15 | } | 18 | } | 
| 16 | 19 |