Toggle navigation
Yet Another Dev Blog
It's basically about programming and work in general
Home
Angular.js
AngularJS: Внедрение зависимости от ngLocale
AngularJS: Внедрение зависимости от ngLocale
06, 03, 2013
bullgare
Angular.js
No Comments.
Go
angular.module('CommonFilters', ['ngLocale']). filter('month_names', ['$locale', function ($locale) { return function month_names() { return $locale.DATETIME_FORMATS.MONTH; } }]).
1
2
3
4
5
6
angular
.
module
(
'CommonFilters'
,
[
'ngLocale'
]
)
.
filter
(
'month_names'
,
[
'$locale'
,
function
(
$
locale
)
{
return
function
month_names
(
)
{
return
$
locale
.
DATETIME_FORMATS
.
MONTH
;
}
}
]
)
.
Similar Posts
None Found
Leave a Comment
LEAVE A COMMENT
Отменить ответ
Для отправки комментария вам необходимо
авторизоваться
.