Daily Archives: 02.08.2013

AngularJS: использование фильтра в контроллере

controller(‘MyCtrl’, [‘$scope’, ‘$filter’, function ChatCtrl($scope, $filter) { … $scope.msg = $filter(‘formatTime’)($scope.created * 1000); }]);