Skip to content
Snippets Groups Projects
Commit c74dfbe4 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Create join-room component

parent b27733d9
No related merge requests found
......@@ -4,6 +4,7 @@ import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { JoinRoomComponent } from './join-room/join-room.component';
import { LoginComponent } from './login/login.component';
import { RegisterComponent } from './register/register.component';
import { PasswordResetComponent } from './password-reset/password-reset.component';
......@@ -53,6 +54,8 @@ import { AuthenticationGuard } from './authentication.guard';
@NgModule({
declarations: [
AppComponent,
JoinRoomComponent,
AppComponent,
LoginComponent,
LoginScreenComponent,
......@@ -69,6 +72,9 @@ import { AuthenticationGuard } from './authentication.guard';
AppRoutingModule,
BrowserModule,
BrowserAnimationsModule,
MatButtonModule,
MatInputModule
BrowserAnimationsModule,
FlexLayoutModule,
FormsModule,
MatAutocompleteModule,
......
<form>
<mat-form-field class="input-block">
<input matInput placeholder="Room-Id" />
</mat-form-field>
<button mat-raised-button color="primary">Join</button>
</form>
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { JoinRoomComponent } from './join-room.component';
describe('JoinRoomComponent', () => {
let component: JoinRoomComponent;
let fixture: ComponentFixture<JoinRoomComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ JoinRoomComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(JoinRoomComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-join-room',
templateUrl: './join-room.component.html',
styleUrls: ['./join-room.component.scss']
})
export class JoinRoomComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment