I need to insert dynamic key like shown in below

 $scope.rI = [
                {"*chicken*": [
                        {
                            "item_name": "chicken masala",
                            "item_type": "non-veg",
                            "description": "Chicken tikka masala",
                            "features": "none",
                            "feel_name": "chicken"
                        },
                        {
                            "item_name": "chicken tikka",
                            "item_type": "non-veg",
                            "description": "Chicken tikka is a chicken dish 
",
                            "features": "none",
                            "feel_name": "chicken"
                        }
                    ]
                },
     {*"fish"*: [
                        {
                            "item_name": "fish masala",
                            "item_type": "non-veg",
                            "description": "Nice cooked",
                            "features": "none",
                            "feel_name"
                                    : "chicken"
                        }
                    ]}
]

ABOVE MENTION ARRAY I NEED TO INSERT RED MARKED DYNAMICALLY AND LATER BLUE 
MARK DYNAMICALLY.
PLEASE WRITE JAVASCRIPT CODE TO PUSH OR INSERT DYNAMICALLY.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to