вам просто нужно сделать следующее:
установить базовый href в index.file:
![enter image description here](https://i.stack.imgur.com/QeJQ0.png)
<base href="/app3/">
другой - установить ссылку на скрипт, как показано ниже:
<script type="text/javascript" src="./runtime.js"></script>
вам просто нужно добавить ./
, чтобы весь ваш код выглядел так:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>AngularApp2</title>
<base href="/app3/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="./favicon.ico">
</head>
<body>
<h2>app3</h2>
<app-root></app-root>
<script type="text/javascript" src="./runtime.js"></script>
<script type="text/javascript" src="./es2015-polyfills.js" nomodule></script>
<script type="text/javascript" src="./polyfills.js"></script>
<script type="text/javascript" src="./styles.js"></script>
<script type="text/javascript" src="./vendor.js"></script>
<script type="text/javascript" src="./main.js"></script></body>
</html>
икогда вы размещаете приложение angular iis, не забудьте установить dist папку в качестве пути к папке.
![enter image description here](https://i.stack.imgur.com/onLiy.png)