I have an aurelia (similar to react) webpage where I’m inserting my data with this code:
let target = document.getElementById('timelapse').contentDocument;
const runtime = new Runtime();
runtime.module(notebook, name => {
if (name == 'chart')
return new Inspector(target.body);
});
This works great, but the data is the original since I havent changed anything. How can I add my own array to my notebook?
let target = document.getElementById('timelapse').contentDocument;
const runtime = new Runtime();
const module = runtime.module(notebook, name => {
if (name == 'chart')
return new Inspector(target.body);
});
module.redefine('data', [... data goes here ...]);