add login with dummy Data

add login page
add subcomponents
This commit is contained in:
Felix
2021-01-03 18:55:26 +01:00
committed by Mondei1
parent 695dbf9d34
commit 02f1727358
18 changed files with 331 additions and 8 deletions

View File

@@ -1,11 +1,22 @@
import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";
import { DashboardComponent } from "./app/dashboard/dashboard.component";
import { LoginComponent } from "./app/dashboard/login/login.component";
import { OverviewComponent } from "./app/dashboard/overview/overview.component";
import { HelloComponent } from "./app/hello/hello.component";
import { NotFoundComponent } from "./app/not-found/not-found.component";
import { PayComponent } from "./app/pay/pay.component";
const routes: Routes = [
{ path: 'pay/:id', component: PayComponent, data: { title: 'Payment' } },
{ path: 'dashboard', component: DashboardComponent, children: [
{
path: 'login', component: LoginComponent
},
{
path: 'overview', component: OverviewComponent
}
]},
{ path: '', component: HelloComponent },
{ path: '**', component: NotFoundComponent }
]