Update a single property of local JSON file using put call in Angular 8

前端 未结 3 733
野性不改
野性不改 2021-01-27 16:11

I want to update my JSON file which I have placed in my assets folder, so If I am updating just one property of my JSON object so it should update that property only, without af

3条回答
  •  無奈伤痛
    2021-01-27 16:52

    You can't do any file operation using just angular framework. You need server side implementation to achieve this. If you are not familiar with server side programming you can try using in memory angular database api.

    https://www.npmjs.com/package/angular-in-memory-web-api

提交回复
热议问题