diff --git a/src/app/Interfaces/qualifications.ts b/src/app/Interfaces/qualifications.ts new file mode 100644 index 0000000..f6d89c5 --- /dev/null +++ b/src/app/Interfaces/qualifications.ts @@ -0,0 +1,4 @@ +export interface Qualifications { + id: number; + title: string; +} diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index 087641c..6fed924 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -1,4 +1,8 @@ import {Routes} from '@angular/router'; import {DashboardComponent} from '@app/views/dashboard/dashboard.component'; +import {QualificationsComponent} from "@app/views/qualifications/qualifications.component"; -export const routes: Routes = [{path: '', component: DashboardComponent, title: 'Home'}]; +export const routes: Routes = [ + {path: '', component: DashboardComponent, title: 'Home'}, + {path: 'qualifications', component: QualificationsComponent, title: "Qualifications"}, +]; diff --git a/src/app/header/header.component.ts b/src/app/header/header.component.ts index 3e08782..5fc8908 100644 --- a/src/app/header/header.component.ts +++ b/src/app/header/header.component.ts @@ -19,6 +19,7 @@ import {AuthService} from '@core/auth/auth.service'; TitleCasePipe, ], templateUrl: './header.component.html', + standalone: true, styleUrl: './header.component.scss' }) export class HeaderComponent implements OnInit { diff --git a/src/app/services/qualification.service.spec.ts b/src/app/services/qualification.service.spec.ts new file mode 100644 index 0000000..2a878e3 --- /dev/null +++ b/src/app/services/qualification.service.spec.ts @@ -0,0 +1,16 @@ +import { TestBed } from '@angular/core/testing'; + +import { QualificationService } from './qualification.service'; + +describe('QualificationService', () => { + let service: QualificationService; + + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(QualificationService); + }); + + it('should be created', () => { + expect(service).toBeTruthy(); + }); +}); diff --git a/src/app/services/qualification.service.ts b/src/app/services/qualification.service.ts new file mode 100644 index 0000000..6d31274 --- /dev/null +++ b/src/app/services/qualification.service.ts @@ -0,0 +1,33 @@ +import { Injectable } from '@angular/core'; +import {Qualifications} from "@app/Interfaces/qualifications"; + +@Injectable({ + providedIn: 'root' +}) +export class QualificationService { + qualifications = [ + { + id: 15, + title: 'Java'}, + { + id: 16, + title: 'Angular'}, + { + id: 17, + title: 'CSS'}, + { + id: 18, + title: 'Windows'}, + { + id: 19, + title: 'Linux'}, + { + id: 20, + title: 'Yes'}, + ] + + constructor() { } + deleteQualification(qualifications: Qualifications){ + this.qualifications = this.qualifications.filter(t => t!== qualifications) + } +} diff --git a/src/app/views/qualifications/qualifications.component.html b/src/app/views/qualifications/qualifications.component.html new file mode 100644 index 0000000..a4aa577 --- /dev/null +++ b/src/app/views/qualifications/qualifications.component.html @@ -0,0 +1,74 @@ +
+ + + + +Id | +Bezeichnung | +||
---|---|---|---|
+ + | +{{qualification.id}} | +{{qualification.title}} | ++ + | +