Wednesday, 5 September 2018

toggle Not Working in foreach loop in angularJS

toggle Not Working in foreach loop in angularJS then Add  directive



//====
app.directive('toggle', function () {
return {
restrict: 'A',
link: function (scope, element, attrs) {
if (attrs.toggle == "tooltip") {
$(element).tooltip({
trigger: "hover"
});
}
if (attrs.toggle == "popover") {
$(element).popover({
trigger: "hover"
});
}
if (attrs.toggle == "popover1") {
$(element).popover({
trigger: "click"
});
}
}
};
});
///======

No comments:

Post a Comment

IIS deployment support details

  Node JS - IIS deployment support details node: http://go.microsoft.com/?linkid=9784334 IISNode: https://github.com/azure/iisnode/releases/...