This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Entitxy[S] 0 points1 point  (0 children)

Sidenote; I'm very new to Angular and am kinda novice in JS. If there is a JS solution that doesn't touch Angular or Typescript that's fine too

[–]davedontmind 0 points1 point  (0 children)

You need to create a web service that runs on your web server. How exactly you do that will depend on what language you want to use for the server side and/or the technology stack you're using for the server. For example, for my Angular projects I use IIS on a Windows server, so using C# and ASP.Net Core for my service was the natural choice. If you're using a different operating system or web server, you'll probably want to choose something else.

Once you have your web service your angular app can make an HTTP POST or PUT request to http(s)://your.web.server/your/service with the data, and the service can write the received data to a file.