import {
  ChangeDetectionStrategy,
  Component
} from "@angular/core";
import {ErvuDataService} from "../service/ervu-data.service";
import {CookieService} from "ngx-cookie";

@Component({
  moduleId: module.id,
  selector: "app-header",
  templateUrl: "../../../../../src/resources/template/app/component/app_header.html",
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class AppHeaderComponent {

  constructor(protected cookieService: CookieService, protected ervuDataService: ErvuDataService) {
    if (cookieService.get("webbpm.ervu-lkrp-fl")) {
      this.ervuDataService.getData();
    }
  }
}
