Bundle.read(filename) Method (JS)
Asynchronously reads a file from the application bundle
var Bundle = require("FuseJS/Bundle");
Bundle.read("someData.json").then(function(contents) {
console.log(contents);
}, function(error) {
console.log("Error!", error);
});
Location
- Namespace
- FuseJS
- Package
- FuseJS 2.9.1
Returns
Promise
A promise of the file's contents