Hi @sravya shivapuram,
You could create a library to store the angular files.
Update index.html to points to these js files.
<body>
<app-angular-demo-web-part description="Hello world!"></app-angular-demo-web-part>
<script src="/SiteAssets/AngularDemo/runtime.js"></script>
<script src="/SiteAssets/AngularDemo/polyfills-es5.js" nomodule></script>
<script src="/SiteAssets/AngularDemo/polyfills.js"></script>
<script src="/SiteAssets/AngularDemo/scripts.js"></script><script src="/SiteAssets/AngularDemo/main.js"></script>
</body>
Link the html file in content editor webpart and result.
You could refer to the thread
https://stackoverflow.com/questions/38737101/deploying-angular2-project-on-sharepoint-online
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.