1.0.0 • Published 3 years ago

rgv-jpath-picker v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

RgvJpathPicker

This library was build to get Jpath from json data using a click on node.

Usage

Import the RgvJpathPickerModule in app.module.ts

import { RgvJpathPickerModule } from 'rgv-jpath-picker';

@NgModule({
  declarations: [
    ...
  ],
  imports: [
    ...,
    RgvJpathPickerModule,
    ...
  ],
  providers: [],
  bootstrap: [...]
})
...

Add the following code to html file.

<rgv-jpath-picker (jPath)="getJpath($event)" [json]="jsonData" [jsonPath]="'$'"><rgv-jpath-picker>

Here, jsonData is a typescript variable which consist json value. We will get Jpath value in jPath variable. We need to declare a method in typescript file.

getJpath(jPath) {
    //Here you can access jPath
    console.log(jPath);
}
1.0.0

3 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.2

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.0

3 years ago

0.3.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago