From 2175d373bffe0670bb745af0d14a24aba360254d Mon Sep 17 00:00:00 2001 From: tlewers <34103495+tlewers@users.noreply.github.com> Date: Wed, 29 Nov 2017 11:38:19 -0600 Subject: [PATCH] Update angular-hovercard.js Fixed issue where the hover card would not display if the hover-tmpl-url was pass as a parameter. --- dist/angular-hovercard.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dist/angular-hovercard.js b/dist/angular-hovercard.js index 8cecba4..db025d4 100644 --- a/dist/angular-hovercard.js +++ b/dist/angular-hovercard.js @@ -59,6 +59,9 @@ angular.module('yaru22.hovercard', ['yaru22.hovercard.tmpls']).directive('hoverc $scope.hoverCardStyle.right = ''; } } // if (placement) + $attrs.$observe('hoverTmplUrl', function (newval) { + $scope.hoverTmplUrl = newval; + }); } // link function }; }); @@ -68,4 +71,4 @@ angular.module('yaru22.hovercard.tmpls', []).run([ 'use strict'; $templateCache.put('template/angular-hovercard.tmpl', '
'); } -]); \ No newline at end of file +]);