import {Component, OnInit, ChangeDetectionStrategy, Output, EventEmitter} from '@angular/core';
import {createQueryStringFromObject} from '../../../../../../shared/util/func';

@Component({
  selector: 'app-register-summary-search',
  templateUrl: './register-summary-search.component.html',
  styleUrls: ['./register-summary-search.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class RegisterSummarySearchComponent implements OnInit {
  @Output() search = new EventEmitter();
  query = {
    student_code: null
  };
  constructor() { }

  ngOnInit(): void {
  }

  onSearch(){
    // let query = createQueryStringFromObject(this.query);
    this.search.emit(this.query.student_code);
  }

}
