I am creating small angular application in which I have placed app.js in my application folder where index.html is also there. When, I run 'ng serve' command then index.html is loading but while doing F12 on chrome there it is showing up below error: GET http://localhost:4200/app.js net::ERR_ABORTED 404 (Not Found)
my index.html file:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GridDemo</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<script src="app.js"></script>
</head>
<body>
<app-root></app-root>
</body>
</html>
Even though adding <base href="/"></base> is not making any impact.
app.jsis that your own javascript file?