How to get a local big json data?
I have tried this, but I had no success:
var sa = require(\"./shared/resources/sa.json\"); var array = new observab
TypeScript:
import {knownFolders} from "tns-core-modules/file-system"; export class Something { loadFile() { let appFolder = knownFolders.currentApp(); let cfgFile = appFolder.getFile("config/config.json"); console.log(cfgFile.readTextSync()); } }