Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created October 10, 2019 18:07
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/195a0e3e62f7a49cd742b457d38b1b46 to your computer and use it in GitHub Desktop.
Save bjoerntx/195a0e3e62f7a49cd742b457d38b1b46 to your computer and use it in GitHub Desktop.
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