Answers for "angular read config from json"

1

angular read config from json

{  "compilerOptions": {  "resolveJsonModule": true, "esModuleInterop": true } }

add this to tsconfig.json, then read json by importing like normal module:
import '../assets/test.json'
Posted by: Guest on November-02-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language