Skip to content

Commit aa314ed

Browse files
committed
Merge pull request rschmukler#4 from christopherbahr/master
Allow template in addition to templateUrl
2 parents f80988f + c450235 commit aa314ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/angular-tooltip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
options = extend({ templateUrl: defaultTemplateUrl }, options);
2626
options.tether = extend({}, defaultTetherOptions, options.tether || {});
2727

28-
var template = $templateCache.get(options.templateUrl),
28+
var template = options.template || $templateCache.get(options.templateUrl),
2929
scope = options.scope || $rootScope.$new(),
3030
target = options.target,
3131
elem = $compile(template)(scope),

0 commit comments

Comments
 (0)