<commit_before>import { Component, OnInit, OnDestroy } from '@angular/core';
import { SharedVariableService } from "../../../_service/sharedvariable-service";
import { ActionBtnProp } from '../../../_model/action_buttons';
import { Subscription } from 'rxjs/Subscription';
import { EmpService } from '../../../_service/employee/emp-service' /* add reference for view employee */

import { Router } from '@angular/router';

@Component({
    templateUrl: 'viewemployee.comp.html',
    providers: [EmpService]
})

export class ViewEmployee implements OnInit, OnDestroy {
    type: string = "";
    value: string = "";
    name: string = "";

    title: any;
    EmpName: any;
    autoEmpName: any;

    actionButton: ActionBtnProp[] = [];
    subscr_actionbarevt: Subscription;

    viewEmployeeDT: any[];

    filterEmployeeData() {
        this.getEmployeeData(this.EmpName);
    }

    constructor(private _router: Router, private setActionButtons: SharedVariableService, private _empservice: EmpService) {
        this.getEmployeeData();
    }

    ngOnInit() {
        this.title = "View Employee";
        this.type = "EmpWithCode";

        console.log(this.value);
        console.log(this.name);

        this.actionButton.push(new ActionBtnProp("add", "Add", "plus", true, false));<commit_msg>update in view employee details<commit_after>import { Component, OnInit, OnDestroy } from '@angular/core';
import { SharedVariableService } from "../../../_service/sharedvariable-service";
import { ActionBtnProp } from '../../../_model/action_buttons';
import { Subscription } from 'rxjs/Subscription';
import { EmpService } from '../../../_service/employee/emp-service' /* add reference for view employee */

import { Router } from '@angular/router';

@Component({
    templateUrl: 'viewemployee.comp.html',
    providers: [EmpService]
})

export class ViewEmployee implements OnInit, OnDestroy {
    type: string = "";
    value: string = "";
    name: string = "";

    title: any;
    EmpName: any;
    autoEmpName: any;

    actionButton: ActionBtnProp[] = [];
    subscr_actionbarevt: Subscription;

    viewEmployeeDT: any[];

    filterEmployeeData() {
        this.getEmployeeData();
    }

    constructor(private _router: Router, private setActionButtons: SharedVariableService, private _empservice: EmpService) {
        this.getEmployeeData();
    }

    ngOnInit() {
        this.title = "View Employee";
        this.type = "EmpWithCode";

        console.log(this.value);
        console.log(this.name);

        this.actionButton.push(new ActionBtnProp("add", "Add", "plus", true, false));
{'fraction_non_alphanumeric': 0.14389869531849578, 'fraction_numerical': 0.0, 'mean_word_length': 3.345, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4886364', 'n_tokens_mistral': 760, 'n_tokens_neox': 737, 'n_words': 175}