This is my spinet:
$scope.foodtypes = {
'GRAINS': {
'HOT': ['Rice','Beans','Sogum'],
'ROOT': ['Yam','Potato','Cassava']
}
}
I like to store the exact word "GRAINS" or "ROOT" in a variable for decision making:
something like:
if foodtypes is "GRAINS" then ......
if foottypes is "ROOT" then ......
Please how do I capture "GRAIN" or "ROOT" for use?