mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-17 01:19:29 +08:00
20 lines
355 B
TypeScript
20 lines
355 B
TypeScript
import { Component } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: '[id="app"]',
|
|
templateUrl: './app.component.html',
|
|
styleUrls: ['./app.component.css']
|
|
})
|
|
export class AppComponent {
|
|
title = 'my-app';
|
|
|
|
clickMessage = '';
|
|
|
|
onClickMe() {
|
|
// @ts-ignore
|
|
window.backend.basic().then(result =>
|
|
this.clickMessage = result
|
|
);
|
|
}
|
|
}
|