How can I give a specific name to 0th and 1st object of "Items" array of AngularJsonEditor?

142 Views Asked by At

Example link is here https://stackblitz.com/edit/angular-rwwjo3?file=src/app/app.component.ts

I want to show a specific name for object 0 and object 1 of Items array. How can I achieve this. I am using NgJsonEditor.

This is HTML code -> HTML usage screenshot

This is the .ts -> .ts file usage screenshot

And the DATA is ->

export const DATA = { Items: [{ Name: "A", NumberProperty: 123, BooleanProperty: true, StringProperty: "abc", OrderBy: "DESC" }, { Name: "B", NumberProperty: 456, BooleanProperty: false, StringProperty: "def", OrderBy: "ASC" }] };

result screenshot

Thanks in advance.

0

There are 0 best solutions below