Hovercard is a very lightweight Angular directive that is written purely in AngularJS. It is a card that is displayed when you hover over a label. The card can contain any html element. It is inspired by Hovercard jQuery plugin.
See the demos below and learn how to use the directive!
Hi, I'm
If you are interested in learning how I made this directive,
Follow @yaru22 for an update.
<hovercard hover-tmpl-url="hoverCardDetail.tmpl">
Brian Park
</hovercard>
You can specify where the hovercard will pop out using 'placement' attribute.
There are four possible placements: "bottomLeft", "bottomRight", "topLeft" and "topRight".
The default value is "bottomRight".
<hovercard hover-tmpl-url="hoverCardDetail.tmpl" placement="bottomRight">
bottomRight
</hovercard>
Yo dawg, I heard you like hovercard, so I put a hovercard in your
hovercard so you can see a hovercard while you see a
By default, the hovercard uses pomegranate color (#c0392b)
for the label. However, you can specify the different label color
using 'label-color' attribute.
<hovercard hover-tmpl-url="hoverCardDetail.tmpl" label-color="#3498db">
Different Label Color
</hovercard>
By default, the hovercard uses white background.
However, you can specify the different hovercard background using
'background' attribute.
<hovercard hover-tmpl-url="hoverCardDetail.tmpl" background="#ffffdb">
Different Background
</hovercard>
<hovercard hover-tmpl-url="hoverCardDetail.tmpl"
on-hover-in="hoverIn()"
on-hover-out="hoverOut()">
Hover in and out of this
</hovercard>
Would you like to showcase your hovercard demo? Feel free add your jsFiddle, plnkr, etc. to demo/index.html (this page) and request a pull on Github.