I'm trying to use $scope
in my templateUrl like this:
app.config(['$routeProvider',
function ($routeProvider) {
$routeProvider.
when('/blog', {
templateUrl: 'themes/{{ mainCtrl.site_theme }}/view/home.html',
controller: 'BlogMain',
}).
otherwise({
redirectTo: '/blog'
})
}]);
When trying to use:
root/themes/<theme_name>/view/home.html
as the template file. It currently gives me the error GET http://www.url.com/themes/%7B%7B%20mainCtrl.site_theme%20%7D%7D/view/home.html 404 (Not Found)
NOTE: it works fine if I type the theme name normally
Any help will be appreciated :D thanks in advance