feat: add employee detail component and update navigation bar
This commit is contained in:
parent
4b83970a8c
commit
ac48357e7a
8 changed files with 44 additions and 3 deletions
|
@ -2,5 +2,4 @@
|
|||
:host {
|
||||
display: block;
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
<app-navigation-bar></app-navigation-bar>
|
||||
<app-employee-detail></app-employee-detail>
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
import { Component } from '@angular/core';
|
||||
import { RouterOutlet } from '@angular/router';
|
||||
import { NavigationBarComponent } from './components/navigation-bar/navigation-bar.component';
|
||||
import { EmployeeDetailComponent } from './components/employee-detail/employee-detail.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
standalone: true,
|
||||
imports: [RouterOutlet, NavigationBarComponent],
|
||||
imports: [RouterOutlet, NavigationBarComponent, EmployeeDetailComponent],
|
||||
templateUrl: './app.component.html',
|
||||
styleUrl: './app.component.css'
|
||||
})
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
<div class="d-flex flex-col" style="height: 100%;">
|
||||
<app-navigation-bar></app-navigation-bar>
|
||||
test
|
||||
</div>
|
|
@ -0,0 +1,23 @@
|
|||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { EmployeeDetailComponent } from './employee-detail.component';
|
||||
|
||||
describe('EmployeeDetailComponent', () => {
|
||||
let component: EmployeeDetailComponent;
|
||||
let fixture: ComponentFixture<EmployeeDetailComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [EmployeeDetailComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(EmployeeDetailComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
|
@ -0,0 +1,13 @@
|
|||
import { Component } from '@angular/core';
|
||||
import { NavigationBarComponent } from '../navigation-bar/navigation-bar.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-employee-detail',
|
||||
standalone: true,
|
||||
imports: [NavigationBarComponent],
|
||||
templateUrl: './employee-detail.component.html',
|
||||
styleUrl: './employee-detail.component.css'
|
||||
})
|
||||
export class EmployeeDetailComponent {
|
||||
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
:host {
|
||||
display: block;
|
||||
height: 100%;
|
||||
width: 300px;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue