ng2-select children not show any data

Created on 29 Jul 2017  Â·  5Comments  Â·  Source: valor-software/ng2-select

I want to use ng2-select children, but it can't show any data

Most helpful comment

try this

public items:Array<any> = [
    {
      id: 1,
      text: 'Austria',
      children: [
        {id: 54, text: 'Vienna'}
      ]
    },
    {
      id: 2,
      text: 'Belgium',
      children: [
        {id: 2, text: 'Antwerp'},
        {id: 9, text: 'Brussels'}
      ]
    }
    ]

All 5 comments

And demo can't show too;

try this

public items:Array<any> = [
    {
      id: 1,
      text: 'Austria',
      children: [
        {id: 54, text: 'Vienna'}
      ]
    },
    {
      id: 2,
      text: 'Belgium',
      children: [
        {id: 2, text: 'Antwerp'},
        {id: 9, text: 'Brussels'}
      ]
    }
    ]

Same problem here!

The @jacobke solution not worked for me.

Duplicate #922

Duplicate #597
Do we have the workaround for adding custom stylings to the parent item? please see the question here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rkralston picture rkralston  Â·  3Comments

denghuiquan picture denghuiquan  Â·  3Comments

BenDevelopment picture BenDevelopment  Â·  5Comments

Cadenei picture Cadenei  Â·  4Comments

Hasnain-Bukhari picture Hasnain-Bukhari  Â·  3Comments