Initial implementation of login and registration with fake backend for future testing

Also introduced flex-layout
This commit is contained in:
2020-07-21 15:34:52 +02:00
parent d90204d34c
commit c82d784866
31 changed files with 724 additions and 230 deletions

View File

@@ -1,8 +1,17 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AppComponent } from './app.component';
import { AuthGuard } from './account/auth.guard';
import { LoginComponent } from './account/login/login.component';
import { RegisterComponent } from './account/register/register.component';
const routes: Routes = [];
const routes: Routes = [
{ path: '', component: AppComponent, canActivate: [AuthGuard] },
{ path: 'login', component: LoginComponent },
{ path: 'register', component: RegisterComponent },
{ path: '**', redirectTo: '' },
];
@NgModule({
imports: [RouterModule.forRoot(routes)],