Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created December 6, 2019 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/729ad975aea9c20413703140d0716644 to your computer and use it in GitHub Desktop.
Save bjoerntx/729ad975aea9c20413703140d0716644 to your computer and use it in GitHub Desktop.
import { Component } from '@angular/core';
declare const readDocument: any;
declare const saveDocument: any;
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'my-editor-app';
onChangeLoad(event: any) {
readDocument(event);
}
onClickSave() {
saveDocument();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment