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

@Component({
  selector: 'app-allocatematerial',
  templateUrl: './allocatematerial.component.html',
  styleUrls: ['./allocatematerial.component.scss']
})
export class AllocatematerialComponent implements OnInit {

 show = false;
  closed = false;
  public myModal;
  public myModalData;
  studyMaterialDetails: any;
  constructor() { }   
  ngOnInit(){
       this.studyMaterialDetails = [
      {
        studycentername: 'Studycenter A',
        sem:'1st Sem/2018',
        course: 'BE',
        Quantity: '30',
       
      },
      {
       studycentername: 'Studycenter B',
        sem:'2nd Sem/2018',
        course: 'MCA',
        Quantity: '10',
      },
      {
       studycentername: 'Studycenter C',
        sem:'1st Sem/2018',
        course: 'MBA',
        Quantity: '20',
      }
    ]
  }
 

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

}
  