13 lines
No EOL
341 B
TypeScript
13 lines
No EOL
341 B
TypeScript
import { executeCommand } from './broker';
|
|
|
|
function handleClick(): void {
|
|
console.log("Der Button wurde geklickt!");
|
|
alert("Hallo von TypeScript!");
|
|
|
|
executeCommand();
|
|
}
|
|
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
const button = document.getElementById("myButton");
|
|
button?.addEventListener("click", handleClick);
|
|
}); |