I'm not sure how to word this, so please bear with me..
On my main controller, I have a large object containing a bunch of nested geographic information that can be traversed with dot notation like so...
$scope.cData = //large object pulled in from service
// In the view, I can call the entire object or traverse it to return JSON
{{cData}} // Entire object
{{cData.United_States}} // US Data only
{{cData.United_States.Southwest}} // Southwest region only
{{cData.United_States.Southwest.Texas}} // Texas state only
In a child controller, I have a scope that is built up with a bunch of inputs on a UI. So depending on which choices the user has made, all of the variables are watched and concatenated to a controller scope. Based on what the user has chosen, the watch function will alter the "query" variable:
$scope.companyData = "United_States.Southwest"; // User chooses southwest
So the question is, how can i make companyData pass as arguments to the cData object in the view? An incorrect way of looking at it would be like this:
{{$parent.cData + {{companyData}} }}
In other words, I want to use the companyData scope variable to reference where to traverse into the cData scope variable.