Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-moment-service

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-moment-service

AngularJS Service for dependency injection of moment.js

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

angular-momentjs-service

AngularJS Wrapper for Moment.js 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.

    <script src="angular-momentjs-service.min.js"></script>
    
  3. Add angular-momentjs module in the dependencies of a angular module:

    angular.module('exampleApp', ['angular-momentjs'])
    
  4. Inject the MomentJS service into a controller, a directive, etc:

    .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.

FAQs

Package last updated on 19 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc