diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index d425c6f..ee42ad5 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,7 +1,13 @@ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; +import { HomeComponent } from './home/home.component'; +import { CargarProductosComponent } from './cargar-productos/cargar-productos.component'; -const routes: Routes = []; +const routes: Routes = [ + { path: 'home', component: HomeComponent }, + { path: 'cargar-productos', component: CargarProductosComponent }, + { path: '**', redirectTo: '/home', pathMatch: 'full' }, +]; @NgModule({ imports: [RouterModule.forRoot(routes)], diff --git a/src/app/app.component.html b/src/app/app.component.html index 20ca503..90c6b64 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,8 +1 @@ -
HEADER
-HEADER
+FOOTER