journal-notes.component.ts 474 B

12345678910111213141516171819
  1. import { Component, OnInit, OnDestroy } from '@angular/core';
  2. import { Editor } from 'ngx-editor';
  3. @Component({
  4. selector: 'app-journal-notes',
  5. templateUrl: './journal-notes.component.html',
  6. styleUrl: './journal-notes.component.scss',
  7. })
  8. export class JournalNotesComponent implements OnInit, OnDestroy {
  9. editor: Editor = new Editor();
  10. html = '';
  11. ngOnInit(): void {}
  12. // make sure to destory the editor
  13. ngOnDestroy(): void {
  14. this.editor.destroy();
  15. }
  16. }