Skip to content

Instantly share code, notes, and snippets.

View e-stylzz's full-sized avatar
🏠
Working from home

Eric Barb e-stylzz

🏠
Working from home
View GitHub Profile
@kohgpat
kohgpat / app.js
Created September 23, 2013 07:48
angular.js date filter using moment.js
angular.module("app.users", ["ngResource"]).factory("Users", function($resource) {
return $resource("users.json", {}, {get: {method: "GET", isArray: true}});
});
angular.module("app.filters", []).filter("date", function() {
moment.lang("ru");
return function(date) {
return moment(new Date(date)).format("L");
};