UNPKG

client-ui

Version:

Testing implementation of nodeJs Backend, angular frontend, and hopefully in a way that this can be deployed to s3/cloudfront

23 lines (20 loc) 563 B
/* global $ angular */ (function () { "use strict"; angular.module("clientApp").directive("tooltip", tooltip); tooltip.$inject = []; function tooltip() { return { restrict: "A", link: function(scope, element){ $(element).hover(function(){ // on mouseenter $(element).tooltip("show"); }, function(){ // on mouseleave $(element).tooltip("hide"); }); } }; } })();