Skip to content

Commit e350030

Browse files
author
JLRR2019
committed
Linkeos de prueba en el .route
1 parent ee1f96c commit e350030

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
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=password
13+
spring.datasource.password=Juanluis-123
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=password
13+
spring.datasource.password=Juanluis-123
1414
spring.jpa.hibernate.ddl-auto=create-drop
1515

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

frontend/src/app/app.routing.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
import { Routes, RouterModule } from '@angular/router';
22

33
import { HomeComponent } from './components/home/home.component';
4+
import { NewsComponent } from './components/news/news.component';
5+
import { ShowNewsComponent } from './components/news/showNews.component';
6+
import { UserProfile } from './components/user/userProfile.component';
47

58
//aquí tenemos que completar todo lo que queremos que se vaya cargando en el router-outlet
69
//ojo, el template no debe llamar al servicio, hay que hacerlo a través del componente
710

811
const appRoutes = [
912
{ path: 'home', component: HomeComponent },
13+
{ path: 'news', component: NewsComponent },
14+
{ path: 'showNews', component: ShowNewsComponent},
15+
{ path: 'userProfile', component: UserProfile},
1016
{ path: '', redirectTo: 'home', pathMatch: 'full'}
1117
]
1218

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ <h3>Nuevas noticias sobre The Witcher 4</h3>
8585

8686
<!-- The slideshow/carousel -->
8787

88-
<news *ngIf="imagesCarousel">
88+
<a *ngIf="imagesCarousel">
8989
<ng-template ngbSlide>
9090
<div class="picsum-img-wrapper">
9191
<img [src]="imagesCarousel[0]" alt="Random first slide">
@@ -113,7 +113,7 @@ <h3>Mario kart 9</h3>
113113
<p>Ya es una realidad, no te lo pierdas</p>
114114
</div>
115115
</ng-template>
116-
</news>
116+
</a>
117117

118118
</div>
119119
</div>

frontend/src/app/components/news/showNews.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h1 class="display-5 fw-bolder text-white mb-2" style="font-size: 40px;">{{news?
1919

2020
</header>
2121

22-
<p>*ngIf="isAdmin()"</p>
22+
<p *ngIf="isAdmin()"></p>
2323
<section class="pt-0 MoreInfo">
2424
<div class="container-fluid my-5">
2525
<div class="row justify-content-center" style=" background-color: rgb(27, 31, 31); margin-bottom: 2%;">

0 commit comments

Comments
 (0)