import { Component, OnInit } from '@angular/core';

@Component({
  templateUrl: 'study-center.component.html',
  styleUrls:['./study-center.component.scss']
})
export class StudyCenterComponent implements OnInit {
  show = false;
  closed = false;
  public myModal;
  public myModalData;
  studyCenterDetails: any;
  constructor() { }
  ngOnInit(){
       this.studyCenterDetails = [
      {
        stdyId: '0001',
        name: 'xyz',
        contactPerson: 'sss',
        mobile: '+919876543210',
        status: '1'
      },
      {
        stdyId: '0002',
        name: 'xss',
        contactPerson: 'mmm',
        mobile: '+911234567890',
        status: '1'
      },
      {
        stdyId: '0003',
        name: 'fys',
        contactPerson: 'vvv',
        mobile: '+911234567890',
        status: '0'
      }
    ]
  }

  getModelWindowDetails(stuCent) {
    this.myModalData = stuCent||null;
  }
  editStudyCenter(){
     this.show = !this.show;
  }

}
