1e jet du formulaire d'ajout de sauts

This commit is contained in:
Sébastien André
2019-10-28 12:15:25 +01:00
parent 08f04480d5
commit 1a5cc2ed4e
6 changed files with 103 additions and 19 deletions

View File

@@ -1,15 +1,28 @@
import { Component, OnInit } from "@angular/core";
import { ServiceComm } from "../../services/serviceComm";
import { Component, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';
import { ServiceComm } from '../../services/serviceComm';
@Component({
selector: "app-new-jump",
templateUrl: "./new-jump.component.html",
styleUrls: ["./new-jump.component.css"]
selector: 'app-new-jump',
templateUrl: './new-jump.component.html',
styleUrls: ['./new-jump.component.css']
})
export class NewJumpComponent implements OnInit {
constructor(private serviceComm: ServiceComm) {}
date: FormControl;
defaultExitAltitude: number;
defaultDeployAltitude: number;
countOfJumps: number;
constructor(private serviceComm: ServiceComm) {
this.date = new FormControl(new Date());
this.defaultExitAltitude = 4000;
this.defaultDeployAltitude = 1000;
this.countOfJumps = 0;
}
ngOnInit() {
this.serviceComm.updatedComponentTitle("Add a new jump");
this.serviceComm.updatedComponentTitle('Add a new jump');
}
}