FYI-We are using Angular for it's data binding ability. We are not trying to develop our application as a SPA so I do not think that the $routeprovider is an option (if I am wrong let me know). So, here is the problem. When I use ng-include to load a left navigation as a partial, the section loads fine but the dropdown does not work because the scope's data in the parent scope is not available to the partial page because ng-include creates a child scope. So, my array, which has the url id I need to pass as a url parameter is 'undefined' when trying to access it from the partial using ng-include. What is the best way to get this to work?
Here is the drop down that is part of the navigation.
<select class="form-control-menu input-xs" ng-model="selectprogram" ng-change="onChange()" ng-disabled="isLoading"
ng-options="obj.name for obj in programList">
<option value="">PROGRAMS</option>
</select>
Here is the onchange event that is called.
$scope.onChange = function () {
window.location.href = '../View/programs.html?reportid=' + $scope.reportID + '&programid=' + $scope.selectprogram.id;
}
What is the best way to resolve this?