import { Component, OnInit ,ViewChild} from '@angular/core';
import * as moment from 'moment';
import { HyperService } from '../../core/services/http.service';
import { Router } from "@angular/router";
import { LocalStorage } from '../../core/services/local_storage.service';
import { BulletinDetailsComponent } from '../bulletin-details/bulletin-details.component';
import { PDFDocumentProxy, PDFProgressData } from 'ng2-pdf-viewer';
import { CONFIG } from '../../../app/config';

@Component({
  selector: 'app-faq',
  templateUrl: './faq.component.html',
  styleUrls: ['./faq.component.scss']
})
export class FaqComponent implements OnInit {
  role:any;
  _url:any;

  constructor(private server: HyperService, private router: Router) {
    this.role = LocalStorage.getValue('user_data').role;
    this._url = CONFIG.domainUrl+"faq/"+this.role+"/faq.pdf"
    // this.getFaqPdf();
  }

  ngOnInit() { 
      
  } 
    
  // getFaqPdf(){
  //   this.server=
  //   this.server.get("faq/"+this.role+"/faq.pdf").then((data)=>{
  //     console.log(data,"data")
  //   })
  // }

}