Angular4 / 5: how to create a folder, text file and write data to this file using typescript

I need to create a folder, a text file and write data to this file in angular5 using typescript. This should write errors in a text file. Is this possible in angular?

Thanks in advance.

+4
source share
1 answer

As Osman Seah said, this cannot be done on the client side. You can create the file using Blob and URL.createObjectURL . But you cannot save the file, as this will cause big security problems.

, . , , PHP, ASP.NET Core...

Google Analytics, ( , ), API Google Analytics. Google Analytics API.

ga('send', {
  hitType: 'event',
  eventCategory: 'Error',
  eventAction: window.location.href,
  eventLabel: your_error_object
});
0

Source: https://habr.com/ru/post/1691440/


All Articles