Created
December 6, 2019 19:26
-
-
Save bjoerntx/729ad975aea9c20413703140d0716644 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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