Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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'
Source by www.angularjswiki.com #
 
PREVIOUS NEXT
Tagged: #angular #read #config #json
ADD COMMENT
Topic
Name
7+2 =