mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Refactor JavaScript example to use template project (#4758)
* Refactor JavaScript example to use template project * Feedback * Update docs/tutorial/node/src/getting_started.md Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
This commit is contained in:
parent
2355234553
commit
203259f024
13 changed files with 154 additions and 124 deletions
|
@ -5,7 +5,7 @@
|
|||
// main.js
|
||||
import * as slint from "slint-ui";
|
||||
|
||||
let ui = slint.loadFile("./memory.slint");
|
||||
let ui = slint.loadFile("./ui/appwindow.slint");
|
||||
let mainWindow = new ui.MainWindow();
|
||||
await mainWindow.run();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue