0

I have data in the following format:

tablecolumns{
{
    Tablecolumn_id:
    name:'First_column'
    DefaultValueForTheColumn:Object
        DefaultValue:"String"
        DefaultValueId:"some_numeric_value"
    TypeOfColumn:Object
        TypeofDataInColumn:"String"
        Value:Array[] /*No. of child elements i want to have in a string column drodown*/
                {
                id:1
                name:'nameofchildelement'
                value:'high'
                }
                {
                isSelectedAsDefault:'true'/*If the value is selected as default it holds true boolean*/
                id:2
                name:'nameofchildelement'
                value:'medium'
                }
                {
                id:1
                name:'nameofchildelement'
                value:'low'
                }

}
{
    Tablecolumn_id:
    name:'First_column'
    DefaultValueForTheColumn:Object
        DefaultValue:"String"
        DefaultValueId:"some_numeric_value"
    TypeOfColumn:Object
        TypeofDataInColumn:"String"
        Value:Array[] 
}
}

For the same i want to write a select dropdown that would by default have the string which has "true" condition in the data.

i have written the following:-

<select  ng-options="column.name for column in tablecolumns" ng-model="column.DefaultValueForTheColumn.DefaultValue" ></select>

But i am not getting any default value. Where am i goin' wrong?

separ1
  • 205
  • 2
  • 20

0 Answers0