{"id":15647023,"url":"https://github.com/patrickjs/angular-momentjs","last_synced_at":"2025-09-06T01:39:52.303Z","repository":{"id":10782388,"uuid":"13050605","full_name":"PatrickJS/angular-momentjs","owner":"PatrickJS","description":"Moment.js with Angular","archived":false,"fork":false,"pushed_at":"2017-04-18T06:47:55.000Z","size":395,"stargazers_count":46,"open_issues_count":8,"forks_count":21,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-04T04:34:10.675Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PatrickJS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-24T00:21:17.000Z","updated_at":"2023-07-19T17:41:07.000Z","dependencies_parsed_at":"2022-09-11T06:50:18.805Z","dependency_job_id":null,"html_url":"https://github.com/PatrickJS/angular-momentjs","commit_stats":null,"previous_names":["gdi2290/angular-momentjs"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/PatrickJS/angular-momentjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Fangular-momentjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Fangular-momentjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Fangular-momentjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Fangular-momentjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PatrickJS","download_url":"https://codeload.github.com/PatrickJS/angular-momentjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Fangular-momentjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273847122,"owners_count":25178633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T12:16:27.461Z","updated_at":"2025-09-06T01:39:52.255Z","avatar_url":"https://github.com/PatrickJS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular-momentjs [![Build Status](https://travis-ci.org/gdi2290/angular-momentjs.png?branch=master)](https://travis-ci.org/gdi2290/angular-momentjs)\n\nMoment.js with Angular.js\n\n#How do I add this to my project?\n\nYou can download angular-momentjs by:\n\n* (preferred) Using bower and running `bower install angular-momentjs --save`\n* Using npm and running `npm install angular-momentjs --save`\n* Downloading it manually by clicking [here to download development unminified version](https://raw.github.com/gdi2290/angular-momentjs/master/angular-momentjs.js)\n\n#Example usage\n\n````html\n\u003cbody ng-app=\"YOUR_APP\" ng-controller=\"MainCtrl\"\u003e\n {{ time }}\n  or\n {{ anotherTime }}\n\u003c/body\u003e\n\u003cscript src=\"http://cdnjs.cloudflare.com/ajax/libs/moment.js/2.5.1/moment.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"http://ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"app/bower_components/angular-momentjs/angular-momentjs.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  angular.module('YOUR_APP', [\n    'angular-momentjs',\n    'controllers'\n  ]) // you're able to set Default settings\n  .config(function($momentProvider){\n    $momentProvider\n      .asyncLoading(false)\n      .scriptUrl('//cdnjs.cloudflare.com/ajax/libs/moment.js/2.5.1/moment.min.js');\n  });\n\n  angular.module('controllers', [])\n    .controller('MainCtrl', function($scope, $moment) {\n      // If didn't set asyncLoading angular-momentjs\n      // will assume you provided moment.js\n      $scope.time = $moment(\"20111031\", \"YYYYMMDD\").fromNow();\n\n      // If you set asyncLoading to true then angular-momentjs\n      // will inject the script and return a promise\n      $moment.then(function(moment) {\n        $scope.anotherTime = moment(\"20111031\", \"YYYYMMDD\").fromNow();\n      })\n    });\n\u003c/script\u003e\n\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickjs%2Fangular-momentjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickjs%2Fangular-momentjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickjs%2Fangular-momentjs/lists"}