add login subcomponent

This commit is contained in:
Felix
2021-01-03 12:57:43 +01:00
committed by Mondei1
parent b409c3c670
commit 695dbf9d34
5 changed files with 44 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ import { CartComponent } from './cart/cart.component';
import { PushNotificationsModule } from 'ng-push-ivy';
import { ClipboardModule } from 'ngx-clipboard';
import { DashboardComponent } from './dashboard/dashboard.component';
import { LoginComponent } from './dashboard/login/login.component';
const config: SocketIoConfig = { url: 'http://localhost:2009', options: {} };
@@ -28,7 +29,8 @@ const config: SocketIoConfig = { url: 'http://localhost:2009', options: {} };
HelloComponent,
NotFoundComponent,
CartComponent,
DashboardComponent
DashboardComponent,
LoginComponent
],
imports: [
BrowserModule,

View File

@@ -0,0 +1 @@
<p>login works!</p>

View File

@@ -0,0 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { LoginComponent } from './login.component';
describe('LoginComponent', () => {
let component: LoginComponent;
let fixture: ComponentFixture<LoginComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ LoginComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(LoginComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.css']
})
export class LoginComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}