The first message is always so soft!
There was a problem inside Angular 1.3 and using the Stateful filter in the controller.
In short, when you use the $ filter ('custom') (data) method as a pose for {{data | custom}} - and cutom filter updates (say, service updates), only inline updates ({{}}) in the view.
Plunkr: http://plnkr.co/edit/nukioL3ORnl9KDPHmNoY?p=preview
(function(angular) {
'use strict';
angular.module('myStatefulFilterApp', [])
.filter('decorate', ['decoration',
function(decoration) {
function decorateFilter(input) {
return decoration.symbol + input + decoration.symbol;
}
decorateFilter.$stateful = true;
return decorateFilter;
}
])
.controller('MyController', function($filter, $scope, decoration) {
$scope.greeting = 'hello';
$scope.decoration = decoration;
$scope.code = $filter('decorate')($scope.greeting);
})
.value('decoration', {
symbol: '*'
});
})(window.angular);
I tried a number of solutions to this problem, including event listeners, etc., but this example makes it clear that none of them will work.
Initially, it proceeded from the use of the date filter and the locale plugin, which dynamically updates the locale, so that when language loads are loaded, the filter was not updated.
, , , ( $watch).
.