I am trying to load a local JSONfile of two ways.
This is my json file:
{ \"imgsesion\": \"fa_closesesion.png\", \"texthome\": \"volver a la home
By this way...
import "file" from "./file.json"
I got red line and got error like module not found by angular.
After some RND I got another way which works for me. Hope it may help someone.
var data = require('src/file.json'); console.log("Json data : ", JSON.stringify(data));