journal-maps.component.ts 398 B

12345678910111213141516171819
  1. import { Component } from '@angular/core';
  2. @Component({
  3. selector: 'app-journal-maps',
  4. templateUrl: './journal-maps.component.html',
  5. styleUrl: './journal-maps.component.scss',
  6. })
  7. export class JournalMapsComponent {
  8. currentText = 'Initial';
  9. texts: any = {
  10. hans: '<b>hans</b>',
  11. peter: '<b>peter</b>',
  12. };
  13. setNewText(key: string) {
  14. this.currentText = this.texts[key];
  15. }
  16. }