Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ryanve/click-class
- Owner: ryanve
- License: mit
- Created: 2017-01-03T02:48:12.000Z (almost 8 years ago)
- Default Branch: gh-pages
- Last Pushed: 2017-01-03T09:21:23.000Z (almost 8 years ago)
- Last Synced: 2024-10-13T09:28:16.798Z (3 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
```