Skip to content

Commit ee1f96c

Browse files
committed
fixed recursion in home.component.html
1 parent 66ce868 commit ee1f96c

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

backend/gamelink/src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spring.mustache.suffix=.html
1010

1111
spring.datasource.url=jdbc:postgresql://localhost:5432/gamelink
1212
spring.datasource.username=postgres
13-
spring.datasource.password=Nekowa10
13+
spring.datasource.password=password
1414
spring.jpa.hibernate.ddl-auto=create-drop
1515

1616
logging.level.org.springframework.security=DEBUG

backend/gamelink/target/classes/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spring.mustache.suffix=.html
1010

1111
spring.datasource.url=jdbc:postgresql://localhost:5432/gamelink
1212
spring.datasource.username=postgres
13-
spring.datasource.password=Nekowa10
13+
spring.datasource.password=password
1414
spring.jpa.hibernate.ddl-auto=create-drop
1515

1616
logging.level.org.springframework.security=DEBUG
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
<header></header>
2-
<navBar></navBar>
1+
<!--AQUÍ NO HACE FALTA LA ETIQUETA HEAD, YA ESTÁ EN EL INDEX.HTML,
2+
O LA QUITAMOS DEL INDEX O LA QUITAMOS DE AQUÍ-->
3+
<!--head></head-->
34

4-
<!--home></!--home-->
5+
<navBar></navBar>
56

7+
<!--tampoco hace falta <home></home>, porque ya el router-outlet ya lo muestra-->
68

79
<router-outlet></router-outlet>
10+
811
<footer></footer>

frontend/src/app/components/home/home.component.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ <h1 class="display-5 fw-bolder text-white mb-2">Tienda y noticiero de videojuego
2020
<div class="col-lg-12 mb-5 mb-lg-0" style="padding-bottom: 3em;"><h2 class="fw-bolder mb-0" style="text-align: center;">Nuestros videojuegos destacados.</h2></div>
2121
<div class="col-lg-12 align-self-center">
2222

23-
<home *ngIf="images">
23+
<a *ngIf="images"> <!--Esta etiqueta estaba puesta a home, la he cambiado porque
24+
es la que provoca la recursión de home (MÍRALO JUAN)-->
2425
<ng-template ngbSlide>
2526
<div class="picsum-img-wrapper">
2627
<img [src]="images[0]" alt="Random first slide">
@@ -48,7 +49,7 @@ <h3>Leyendas Pokemon Arceus</h3>
4849
<p>Pokemon + mundo abierto, no hay nada más que decir.</p>
4950
</div>
5051
</ng-template>
51-
</home>
52+
</a>
5253

5354
</div>
5455
</div>
@@ -77,7 +78,7 @@ <h3>Leyendas Pokemon Arceus</h3>
7778
<section class="py-5">
7879
<div class="container px-5 my-5">
7980
<div id="moreImages" class="row gx-5 justify-content-center">
80-
<!-- AQUÍ VA EL NEWS TEMPLATE -->
81+
<newsTemplate></newsTemplate>
8182
</div>
8283

8384
</div>

0 commit comments

Comments
 (0)