We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
it's better to use $filter in your controllers like below :
.controller('SomeController', function($scope, $filter){ $scope.today = function() { var todayDate = new Date(); $scope.dt = $filter('persianDate')(todayDate, 'yyyy/MM/dd'); }; $scope.today();
.controller('SomeController', function($scope, $filter){
$scope.today = function() {
var todayDate = new Date();
$scope.dt = $filter('persianDate')(todayDate, 'yyyy/MM/dd');
};
$scope.today();