Store in GIT

This commit is contained in:
2026-06-17 16:11:25 +02:00
parent 9998fbd104
commit 2418284092
115 changed files with 3466 additions and 0 deletions
@@ -0,0 +1,30 @@
import {Component} from '@angular/core';
import {Plane} from "../../../classes/plane.class";
import {DataService} from './../../../services/data.service';
@Component({
selector: 'plane-form',
templateUrl: './plane-form.component.html'
})
export class PlaneFormComponent {
constructor(private data: DataService) {
this.plane = new Plane(0, "", "", "", "");
}
temp: string;
public roles = ['Pilot', 'Student', 'Instructor'];
public plane:Plane;
submitted = false;
onSubmit() {
this.submitted = true;
this.data.load().then(() => {
this.data.postPlane(this.plane).subscribe(b => this.temp = JSON.stringify(b));
})
}
}