Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
16 lines (14 sloc) 460 Bytes
import { client } from "./shared";
import { Hello } from "./dtos";
const result = document.querySelector("#result")!;
document.querySelector("#Name")!.addEventListener("input", async e => {
const value = (e.target as HTMLInputElement).value;
if (value != "") {
const request = new Hello();
request.name = value;
const response = await client.get(request);
result.innerHTML = response.result;
} else {
result.innerHTML = "";
}
});
You can’t perform that action at this time.