tooltip directive should create a child scope

This commit is contained in:
Rashid Khan 2014-10-17 14:40:11 -07:00
parent 58759a5bc7
commit ea7aa06c67

View file

@ -9,6 +9,7 @@ define(function (require) {
template: html,
transclude: true,
replace: true,
scope: true,
link: function ($scope, $el, attr) {
$scope.text = attr.text;
$scope.placement = attr.placement || 'top';