Skip to main content
Version: Next Version 🚧

Angular

Whilst Wails does not have an Angular template, it is possible to use Angular with Wails.

Dev Mode​

To get dev mode working with Angular, you need to add the following to your wails.json:

"frontend:build": "npx ng build",
"frontend:install": "npm install",
"frontend:dev:watcher": "npx ng serve",
"frontend:dev:serverUrl": "http://localhost:4200",

You also need to change the index.html file and add the following entries to your header section:

<head>
<meta name="wails-options" content="noautoinject" />
<script src="/wails/ipc.js"></script>
<script src="/wails/runtime.js"></script>
</head>