@coderia/ng-json-lens
v0.0.1-alpha.5
Published
Angular Json Viewer. WORK IN PROGRESS
Downloads
46
Readme
NgJsonLens
Angular Json Viewer. WORK IN PROGRESS
Usage
Add provideJsonLens() to your app.config.ts.
To load a json use an Implementation of JsonLensLoader.
The :id from the URL is available.
Add this to your routes. (Inline usage currently not possible)
{
path: '',
loadChildren: () =>
import('@coderia/ng-json-lens').then((lib) => lib.routes),
},The routes look like this /:filename/:selected.
Override Colors
:root jln-json-lens {
--json-lens: salmon;
--json-lens-contrast: rgb(30, 30, 30);
}