added form into vue to send message

This commit is contained in:
2026-05-13 20:47:55 +01:00
parent ff7039a80b
commit 90749ea55e
4 changed files with 27 additions and 12 deletions
@@ -1,16 +1,23 @@
import {Component, OnInit} from '@angular/core';
import {Component} from '@angular/core';
import {IonicModule} from "@ionic/angular";
import {FormControl, FormGroup, ReactiveFormsModule, Validators} from "@angular/forms";
import {addIcons} from "ionicons";
import {sendOutline} from 'ionicons/icons';
addIcons({
"send-outline" : sendOutline
})
@Component({
selector: 'app-message-form',
templateUrl: './message-form.component.html',
styleUrls: ['./message-form.component.scss'],
imports: [
IonicModule,
ReactiveFormsModule
]
})
export class MessageFormComponent implements OnInit {
constructor() {
}
ngOnInit() {
}
export class MessageFormComponent {
messageForm: FormGroup = new FormGroup({
libelle: new FormControl<string>(null, [Validators.required]),
})
}