hover-class
0.1.1 • Public • Published hover-class
Angular hover-class
directive
Hover to activate
<div hover-class="area--activated" class="area">area</div>
Hover to activate target element(s)
<div hover-class='{".target": ".target--activated"}'>area</div>
Setup
Install via npm
npm install hover-class --save
Declare dependency on your app
angular.module('yourApp', ['hoverClass'])
Or define the directive on your app
angular.module('yourApp', []).directive('hoverClass', require('hover-class'))
Develop
npm test
Other directives
Package Sidebar
Install
Weekly Downloads