Created
October 10, 2019 18:07
-
-
Save bjoerntx/195a0e3e62f7a49cd742b457d38b1b46 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 saveDocument: any; | |
declare const loadDocument: any; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'] | |
}) | |
export class AppComponent { | |
title = 'my-editor-app'; | |
onClickSave() { | |
saveDocument(); | |
} | |
onClickLoad() { | |
loadDocument(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment