Reputation: 550
Is there any way to read and write data in an Angular 2 application to a JSON file?
Upvotes: 4
Views: 1300
Reputation: 12390
No, it is not allowed.
You could use other ways to store your data, though.
One alternative would be using localStorage
.
Take a look at this article.
Upvotes: 4