Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryanve/hover-class
Angular hover-class directive
https://github.com/ryanve/hover-class
angular angular-directive angular-directives
Last synced: about 1 month ago
JSON representation
Angular hover-class directive
- Host: GitHub
- URL: https://github.com/ryanve/hover-class
- Owner: ryanve
- License: mit
- Created: 2017-01-03T07:09:05.000Z (almost 8 years ago)
- Default Branch: gh-pages
- Last Pushed: 2017-01-03T09:06:24.000Z (almost 8 years ago)
- Last Synced: 2024-09-19T05:06:23.273Z (about 2 months ago)
- Topics: angular, angular-directive, angular-directives
- Language: JavaScript
- Homepage: https://ryanve.github.io/hover-class/
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hover-class
Angular `hover-class` directive## [Demo](https://ryanve.github.io/hover-class/)
#### Hover to activate
```html
area
```#### Hover to activate target element(s)
```htmlarea
```## Setup
#### Install via npm
```
npm install hover-class --save
```#### Declare dependency on your app
```js
angular.module('yourApp', ['hoverClass'])
```#### **Or** define the directive on your app
```js
angular.module('yourApp', []).directive('hoverClass', require('hover-class'))
```## Develop
```
npm test
```## Other directives
- [click-class](https://www.npmjs.com/package/click-class)
- [label-class](https://www.npmjs.com/package/label-class)