https://github.com/ryanve/click-class
Angular click-class directive
https://github.com/ryanve/click-class
angular angular-directive angular-directives
Last synced: 8 months ago
JSON representation
Angular click-class directive
- Host: GitHub
- URL: https://github.com/ryanve/click-class
- Owner: ryanve
- License: mit
- Created: 2017-01-03T02:48:12.000Z (almost 9 years ago)
- Default Branch: gh-pages
- Last Pushed: 2017-01-03T09:21:23.000Z (almost 9 years ago)
- Last Synced: 2025-03-15T21:51:21.122Z (8 months ago)
- Topics: angular, angular-directive, angular-directives
- Language: CSS
- Homepage: https://ryanve.github.io/click-class/
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```