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

angular-eha.counter

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-eha.counter

Counting directive

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

angular-eha.counter

Build Status

Counting directive

Usage

Use the bind attribute to bind on the current count:

<eha-counter
  bind="myCtrl.count"
></eha-counter>

Options

template-url

A custom template can be used with the template-url attribute:

<eha-counter
  bind="myCtrl.count"
  template-url="/path/to/tpl.html"
></eha-counter>

Note, the default template assumes a mobile UI and depends on Bootstrap and font-awesome.

ehaCounterProvider

Exposes the increment and decrement callbacks (both angular.noop by default), which are passed corresponding count on change. Can be overridden in an angular.config block, for example:

angular.module('myApp')
  .config(function (ehaCounterProvider) {
    ehaCounterProvider.increment = function (count) {
      console.log('The count is', count)
    }
  })

Installation

Install with npm:

npm install --save angular-eha.counter

Or alternatively bower:

bower install --save angular-eha.counter

Then simply add eha.counter as a dependency somewhere in your project that makes sense and you're good to go.

Contributors

License

Released under the Apache 2.0 License.

Keywords

FAQs

Package last updated on 07 Sep 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