# angular-moment-service

> AngularJS Service for dependency injection of moment.js

Latest version **0.1.0** (published 2015-01-19) · MIT license · 3 weekly downloads

## Install

```sh
npm install angular-moment-service
pnpm add angular-moment-service
yarn add angular-moment-service
bun add angular-moment-service
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-01-19 |
| First published | 2015-01-19 |
| Weekly downloads | 3 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | igor.rafael@gmail.com |
| Maintainers | assisrafael |

## Links

- npm: https://www.npmjs.com/package/angular-moment-service
- npm.io page: https://npm.io/package/angular-moment-service

## Recent versions

- 0.1.0 (latest) — 2015-01-19

## README

angular-momentjs-service
========================

[AngularJS](https://angularjs.org) Wrapper for [Moment.js](http://momentjs.com) whithout registering it in the global scope.


How to use
----------

1. Install angular-momentjs-service via bower:
	```
	bower install --save angular-momentjs-service
	```

2. Include angular-momentjs-service into your project.
	```HTML
	<script src="angular-momentjs-service.min.js"></script>
	```

3. Add ```angular-momentjs``` module in the dependencies of a angular module:
	```JavaScript
	angular.module('exampleApp', ['angular-momentjs'])
	```

4. Inject the MomentJS service into a controller, a directive, etc:
	```JavaScript
	.controller('ExampleCtrl', ['$scope','MomentJS', function($scope, moment){
		$scope.now = moment();
	}])
	```

5. Use the full MomentJS API as you wish.

How to test
-----------

Soon...

How to contribute
-----------------

I am very glad to see this project living with pull requests.

LICENSE
-------

Copyright (c) 2014 Igor Rafael

Licensed under the MIT license.

---
_Source: https://npm.io/package/angular-moment-service · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
