added form into vue to send message
This commit is contained in:
@@ -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]),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user