Skip to content

Commit 35bc425

Browse files
deltajoeleaanthony
andauthored
Update Angular guide with index.html modifications (#5207)
Added instructions for modifying the index.html file to include Wails options and scripts. Otherwise the reload for changed *.ts files won't work. Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
1 parent 1789cdc commit 35bc425

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

website/docs/guides/angular.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,13 @@ To get dev mode working with Angular, you need to add the following to your `wai
1111
"frontend:install": "npm install",
1212
"frontend:dev:watcher": "npx ng serve",
1313
"frontend:dev:serverUrl": "http://localhost:4200",
14-
```
14+
```
15+
16+
You also need to change the `index.html` file and add the following entries to your header section:
17+
```html
18+
<head>
19+
<meta name="wails-options" content="noautoinject" />
20+
<script src="/wails/ipc.js"></script>
21+
<script src="/wails/runtime.js"></script>
22+
</head>
23+
```

0 commit comments

Comments
 (0)