I have successfully created angular custom element named in angular project and I want to use this custom element in another angular project I tried using following ways:
- copied the
profile.js
file of custom element in another angular project and used in tag of another project inindex.html
But getting error as GET http://localhost:4200/profile.js net::ERR_ABORTED 404 (Not Found)
Index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://unpkg.com/@webcomponents/webcomponentsjs@2.1.3/custom-elements-es5-adapter.js"></script>
<script src="https://unpkg.com/zone.js"></script>
<script type="text/javascript" src="/profile.js"></script>
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<app-profile></app-profile>
<app-root></app-root>
</body>
</html>