mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
set default value to form inputs
This commit is contained in:
@@ -44,14 +44,22 @@ export class EventDetailModalPage implements OnInit {
|
||||
this.loadedEvent = new Event();
|
||||
this.loadedEvent.Body = new EventBody();
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.loadEvent();
|
||||
this.loadAttachments();
|
||||
this.ionicForm = this.formBuilder.group({
|
||||
subject: ['', [Validators.required]]
|
||||
})
|
||||
|
||||
// this.setDefaultTime()
|
||||
}
|
||||
|
||||
// setDefaultTime() {
|
||||
// this.loadedEvent.StartDate = new Date()
|
||||
// this.loadedEvent.EndDate = (new Date(new Date().getTime() + 15 * 60000))
|
||||
// }
|
||||
|
||||
get errorControl() {
|
||||
return this.ionicForm.controls;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user