added register component
This commit is contained in:
parent
c774ac1291
commit
b03ed07d91
6 changed files with 39 additions and 1 deletions
|
|
@ -9,12 +9,14 @@ import { ContactsComponent } from './components/contacts/contacts.component';
|
||||||
import { TaskOverlayComponent } from './shared/components/overlay/task-overlay/task-overlay.component';
|
import { TaskOverlayComponent } from './shared/components/overlay/task-overlay/task-overlay.component';
|
||||||
import { TaskEditOverlayComponent } from './shared/components/overlay/task-edit-overlay/task-edit-overlay.component';
|
import { TaskEditOverlayComponent } from './shared/components/overlay/task-edit-overlay/task-edit-overlay.component';
|
||||||
import { LoginComponent } from './components/login/login.component';
|
import { LoginComponent } from './components/login/login.component';
|
||||||
|
import { RegisterComponent } from './components/login/register/register.component';
|
||||||
|
|
||||||
export const routes: Routes = [
|
export const routes: Routes = [
|
||||||
{ path: '', component: SummaryComponent },
|
{ path: '', component: SummaryComponent },
|
||||||
{ path: 'login', component: LoginComponent },
|
{ path: 'login', component: LoginComponent },
|
||||||
{ path: 'login/imprint', component: ImprintComponent },
|
{ path: 'login/imprint', component: ImprintComponent },
|
||||||
{ path: 'login/privacy-policy', component: PrivacyPolicyComponent },
|
{ path: 'login/privacy-policy', component: PrivacyPolicyComponent },
|
||||||
|
{ path: 'register', component: RegisterComponent },
|
||||||
{ path: 'summary', component: SummaryComponent },
|
{ path: 'summary', component: SummaryComponent },
|
||||||
{ path: 'add-task', component: AddTaskComponent },
|
{ path: 'add-task', component: AddTaskComponent },
|
||||||
{ path: 'add-task/:id', component: AddTaskComponent },
|
{ path: 'add-task/:id', component: AddTaskComponent },
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<img class="logo" src="./../../../assets/img/login/logo.svg" alt="" />
|
<img class="logo" src="./../../../assets/img/login/logo.svg" alt="" />
|
||||||
<div class="register">
|
<div class="register">
|
||||||
<p>Not a Join user?</p>
|
<p>Not a Join user?</p>
|
||||||
<button onclick="loadSignupPage()">Sign up</button>
|
<button routerLink="register">Sign up</button>
|
||||||
</div>
|
</div>
|
||||||
<form
|
<form
|
||||||
id="form"
|
id="form"
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
<p>register works!</p>
|
||||||
23
src/app/components/login/register/register.component.spec.ts
Normal file
23
src/app/components/login/register/register.component.spec.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { RegisterComponent } from './register.component';
|
||||||
|
|
||||||
|
describe('RegisterComponent', () => {
|
||||||
|
let component: RegisterComponent;
|
||||||
|
let fixture: ComponentFixture<RegisterComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [RegisterComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(RegisterComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
12
src/app/components/login/register/register.component.ts
Normal file
12
src/app/components/login/register/register.component.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-register',
|
||||||
|
standalone: true,
|
||||||
|
imports: [],
|
||||||
|
templateUrl: './register.component.html',
|
||||||
|
styleUrl: './register.component.scss'
|
||||||
|
})
|
||||||
|
export class RegisterComponent {
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue