1

building my application in angular2 i got some questions which don't seem to be answered in any tutorial:

i would like to store data from input-fields into a .json file which is local and part of my project (therefore in a directory - for example ../app/testdata/testdata.json). By GET and POST i would like to receive or change the displayed data in the gui of my application.

is this even possible or is an external api/database for these requests required? is there a better way to do so if no backend is evaluated till now?

1 Answer 1

3

Writing a file is a server-side operation. You need a back-end. For example Node.js or ASP.NET.

Package for node.js: https://www.npmjs.com/package/jsonfile

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.