import { Component, OnInit, Input, ViewChild, AfterViewInit } from '@angular/core';
import { NgForm } from '@angular/forms';
import { AppBaseEntityWrapper } from '@app_services/app.baseentity.wrapper';
import { AppDataService } from '@app_services/app.data.service';
import { Employee } from '@app_models/employee';
import { EmployeeDataService } from '@app_modules/employee/employee-data.service';
import { AuthorizeService } from '@app_core/services/authorize.service';
import { Globals } from '@app_core/services/globals';

@Component({
  selector: 'app-details-content',
  templateUrl: './employee-content.component.html',
  styleUrls: ['./employee-content.component.scss'],
})
export class EmployeeContentComponent implements OnInit, AfterViewInit {
  @Input() public employeeDetails: AppBaseEntityWrapper<Employee>;
  @ViewChild('detailForm') detailForm: NgForm;

  constructor(
    public appDataService: AppDataService,
    public employeeDataService: EmployeeDataService,
    public authorizeService: AuthorizeService,
    public globals: Globals
  ) { }

  ngAfterViewInit(): void {
    this.employeeDetails.detailForm = this.detailForm;
  }

  ngOnInit() { }


}
