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,29 @@
import {Component} from '@angular/core';
import {User} from "../../../classes/user.class";
import {DataService} from './../../../services/data.service';
@Component({
selector: 'user-form',
templateUrl: './user-form.component.html'
})
export class UserFormComponent {
constructor(private data: DataService) {
}
temp: string;
roles = ['Pilot', 'Student', 'Instructor'];
model = new User(0, "", "", this.roles[0]);
submitted = false;
onSubmit() {
this.submitted = true;
this.data.load().then(() => {
this.data.postUser(this.model).subscribe(b => this.temp = JSON.stringify(b));
})
}
}