import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup } from '@angular/forms'; @Component({ templateUrl: './test.component.html', }) export class TestComponent implements OnInit { dbForm: FormGroup; constructor(private _fb: FormBuilder) { } addNewItemEvent() { console.log('test'); } ngOnInit(): void { this.dbForm = this._fb.group({ refId: [{value: null, disabled: true}], refSuffix: [{value: null, disabled: true}], aciklamalar: [{value: null}], tescilNo: [{value: null}] }); } }