New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular-mousetrap-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-mousetrap-service

AngularJS Service for dependency injection of mousetrap.js

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
decreased by-9.09%
Maintainers
1
Weekly downloads
 
Created
Source

Bower version

angular-mousetrap-service

AngularJS Wrapper for mousetrap.js whithout registering it in the global scope.

How to use

  1. Install angular-mousetrap-service.
    Using bower: bower install --save angular-mousetrap-service
    Or, using npm: npm install --save angular-mousetrap-service

  2. Include angular-mousetrap-service into your project.

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

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

    .controller('ExampleCtrl', ['$scope','Mousetrap', function($scope, Mousetrap){
    	Mousetrap.bind('ctrl+s', function() {
    		//...
    	});
    }]);
    

Obs.: See the Demo page for pratical real example.

How to contribute

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

LICENSE

Copyright (c) 2015 Daniel Campos

Licensed under the MIT license.

Keywords

FAQs

Package last updated on 29 Jul 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