This commit is contained in:
2023-01-31 14:30:30 +01:00
parent 6c1a3436a5
commit f2dab91a1d
4 changed files with 11 additions and 3 deletions

View File

@@ -1,11 +1,13 @@
import {NgModule} from '@angular/core'; import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router'; import {RouterModule} from '@angular/router';
import {HomeComponent} from './home/home.component'; import {HomeComponent} from './home/home.component';
import {DetailComponent} from "./detail/detail.component";
@NgModule({ @NgModule({
imports: [RouterModule.forRoot([ imports: [RouterModule.forRoot([
{path: 'home', component: HomeComponent}, {path: 'home', component: HomeComponent},
{path: 'detail', component: DetailComponent},
{path: '**', redirectTo: 'home'} {path: '**', redirectTo: 'home'}
])], ])],
exports: [RouterModule], exports: [RouterModule],

View File

@@ -1 +1 @@
<app-home></app-home> <router-outlet></router-outlet>

View File

@@ -0,0 +1,6 @@
input{
width: 40%;
display: flex;
justify-content: center;
align-items: center;
}

View File

@@ -1,2 +1,2 @@
<input type="text" placeholder="Type here" class="input input-bordered input-primary w-full max-w-xs" /> <input type="text" placeholder="Type here" class="input input-bordered input-primary w-full max-w-xs" />
ciao