  initialized = false;
  contentLoaded = false;

  collapsed: boolean = true;

  @Output() loadContents = new EventEmitter();

  toggle() {
    this.collapsed = !this.collapsed;
    if (!this.contentLoaded && !this.collapsed) {
      this.loadContents.emit();