I would like to use a filter like a i18n engine, and this filter is working fine. However, if I try to use the i18n filter inside a template HTML (using $routeProvider) I can't do this work.
My Filter:
app.filter('i18n', function() {
return function (input) {
return $.i18n._(input);
}
});
My HTML template:
<div class="fieldConfig first">
<label id="label_topology" for="topology" class="labelMedio">{{"Topologia" | i18n}}:</label>
</div>
My Controller:
function WanCtrl($scope, $routParams, $i18n) {
$scope.title = 'Wan';
};
Does I need to put anything more in my controller to work my filter inside the template?
Thanks!