An Aurelia ui component for viewing JavaScript values (plugin)
In your Aurelia bootstrapper module:
export function configure(aurelia) {
aurelia.use
.plugin("aurelia-entityinspector")
}
When using webpack with current Aurelia version, you need to use this syntax:
import { PLATFORM } from "aurelia-framework";
export function configure(aurelia) {
aurelia.use
.plugin(PLATFORM.moduleName("aurelia-entityinspector"))
}
<jux-entityinspector value.bind="data"
accordionmode.bind="isAccordionMode"
theme="dark">
-
value (any type: Object, Array, Date, string, boolean, number etc.)
-the entity to inspect -
accordionmode (Optional; boolean)
-when true, only one array or object can be expanded at the same level in the inspector. -
theme (Optional; "dark" | "light")
-the entityinspector theme