Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryanve/click-class

Angular click-class directive
https://github.com/ryanve/click-class

angular angular-directive angular-directives

Last synced: about 1 month ago
JSON representation

Angular click-class directive

Awesome Lists containing this project

README

        

# click-class
Angular `click-class` directive

## [Demo](https://ryanve.github.io/click-class/)

#### Toggle class on clicked element

```html
Toggle
```

#### Toggle class on target element(s)
```html
Toggle
```

## Setup

#### Install via npm

```
npm install click-class --save
```

#### Declare dependency on your app

```js
angular.module('yourApp', ['clickClass'])
```

#### **Or** define the directive on your app

```js
angular.module('yourApp', []).directive('clickClass', require('click-class'))
```

## Develop

```
npm test
```