If I'm reading this correctly you'd like to somehow use the culture
parameter from the url route to determine which location to retrieve your template.
There may be a better way but this post describes retrieving the $routeParams
inside a centralized controller with ng-include
to dynamically load a view.
Something similar to this:
angular.module('myApp', []).
config(function ($routeProvider) {
$routeProvider.when('/:culture/:gameKey/:gameId/closed', {
templateUrl: '/templates/nav/urlRouter.html',
controller: 'RouteController'
});
});
function RouteController($scope, $routeParams) {
$scope.templateUrl = 'templates/tradingclosed/' + $routeParams.culture + '_template.html';
}
With this as your urlRouter.html:
<div ng-include src="templateUrl"></div>
You can define the controller you want to load in your views using ng-controller and access the $routeParams
for the additional route parameters:
<div ng-controller="TradingClosedCtrl">
</div>