Skip to content

Commit 6546a4f

Browse files
author
JLRR2019
committed
a
1 parent ed0336a commit 6546a4f

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

frontend/src/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { VideogameRecommendedComponent } from './components/videogame-recommende
3030

3131

3232
@NgModule({
33-
declarations: [AppComponent, LoginComponent, HeadComponent, NewsComponent, NavBarComponent, FooterComponent, NewsTemplateComponent,VideogameCatalogComponent, ShowNewsComponent, HomeComponent, UserProfile,VideogameCardComponent, VideogameCatalogComponent, CarouselComponent, EditNewComponent, EditNewFormComponent],
33+
declarations: [AppComponent, LoginComponent, HeadComponent, NewsComponent, NavBarComponent, FooterComponent, NewsTemplateComponent,VideogameCatalogComponent, ShowNewsComponent, HomeComponent, UserProfile,VideogameCardComponent, VideogameCatalogComponent, CarouselComponent, EditNewComponent, EditNewFormComponent, AboutComponent, VideogameRecommendedComponent],
3434
imports: [BrowserModule, FormsModule, HttpClientModule, routing, FormsModule,RouterModule, NgbModule],
3535
bootstrap: [AppComponent]
3636
})

frontend/src/app/app.routing.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@ import { HomeComponent } from './components/home/home.component';
66
import { NewsComponent } from './components/news/news.component';
77
import { ShowNewsComponent } from './components/news/showNews.component';
88
import { UserProfile } from './components/user/userProfile.component';
9-
<<<<<<< HEAD
109
import { EditNewComponent } from './components/Admin/editNew.component';
11-
=======
1210
import { AboutComponent } from './components/about/about.component';
1311
import { LoginComponent } from './components/login/login.component';
1412
import { SignUpComponent } from './components/login/signUp.component';
1513
import { VideogameRecommendedComponent } from './components/videogame-recommended/videogame-recommended.component';
16-
>>>>>>> 5326ceb9b76e8cf80fe1ecdf216c811dd535b8e5
1714

1815
//aquí tenemos que completar todo lo que queremos que se vaya cargando en el router-outlet
1916
//ojo, el template no debe llamar al servicio, hay que hacerlo a través del componente
@@ -25,17 +22,13 @@ const appRoutes = [
2522
{ path: 'userProfile', component: UserProfile},
2623
{ path: 'videogamecatalog', component: VideogameCatalogComponent },
2724
{ path: 'videogame/:id', component: VideogameDetailComponent },
28-
<<<<<<< HEAD
2925
{ path: 'new/edit/:id', component: EditNewComponent },
30-
{ path: '', redirectTo: 'home', pathMatch: 'full' }
31-
=======
3226
{ path: 'about', component: AboutComponent },
3327
{ path: 'login', component: LoginComponent },
3428
{ path: 'signUp', component: SignUpComponent },
3529
{ path: 'videogameRecommended', component: VideogameRecommendedComponent },
3630
{ path: '', redirectTo: 'home', pathMatch: 'full' },
3731
{ path: '**', redirectTo: 'home' }
38-
>>>>>>> 5326ceb9b76e8cf80fe1ecdf216c811dd535b8e5
3932

4033
]
4134

frontend/src/app/components/Admin/editNewForm.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ <h2 style="text-align: center; padding-top: 2%;">Edit New Form</h2>
7676
<!--<input type="hidden" name="_csrf" value="{{token}}" />-->
7777

7878
<p style="text-align: center;" >
79-
<input #file class="btn btn-primary" type="submit" value="Save" />
79+
<input #file class="btn btn-primary" type="submit" value="Save"/>
8080
<!--Boton que ejecutara la función ajax-->
8181
<button class="btn btn-outline-light" style="color: black; border-color: black;"
8282
onclick="location.href='/'; return false;" (click)="save()">Cancel</button>

0 commit comments

Comments
 (0)