argos/dmp-frontend/src/app/sample-form/sample-form.component.ts

31 lines
641 B
TypeScript

import { Component, OnInit } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms';
import { AutocompleteRemoteComponent } from '../form/fields/autocomplete-remote/autocomplete-remote.component';
@Component({
selector: 'sample-form',
templateUrl: './sample-form.component.html',
styleUrls: ['./sample-form.component.css']
})
export class SampleFormComponent implements OnInit {
sampleForm : any;
constructor() { }
ngOnInit() {
this.sampleForm = new FormGroup ({
a1: new FormControl(),
a2: new FormControl(),
a3: new FormControl(),
a4: new FormControl()
});
}
}