Tag Archives: фильтры
AngularJS: использование фильтра в контроллере
1 2 3 4 |
controller('MyCtrl', ['$scope', '$filter', function ChatCtrl($scope, $filter) { ... $scope.msg = $filter('formatTime')($scope.created * 1000); }]); |
1 2 3 4 |
controller('MyCtrl', ['$scope', '$filter', function ChatCtrl($scope, $filter) { ... $scope.msg = $filter('formatTime')($scope.created * 1000); }]); |