Implement calling GetFood from FE
This commit is contained in:
@@ -1,14 +1,9 @@
|
||||
<script lang="ts">
|
||||
import Header from "$lib/components/Header.svelte";
|
||||
import Router from "$lib/router/Router.svelte";
|
||||
import { Greet } from "../wailsjs/go/main/App.js";
|
||||
import { GetFood } from "../wailsjs/go/main/App.js";
|
||||
|
||||
let resultText: string = "Please enter your name below 👇";
|
||||
let name: string;
|
||||
|
||||
function greet(): void {
|
||||
Greet(name).then((result) => (resultText = result));
|
||||
}
|
||||
GetFood().then((result) => console.log(result));
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
Reference in New Issue
Block a user