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

@Component({
  selector: 'app-journal-maps',
  templateUrl: './journal-maps.component.html',
  styleUrl: './journal-maps.component.scss',
})
export class JournalMapsComponent {
  currentText = 'Initial';

  texts: any = {
    hans: '<b>hans</b>',
    peter: '<b>peter</b>',
  };

  setNewText(key: string) {
    this.currentText = this.texts[key];
  }
}
