Are you looking for the Angular4 equivalent of a particular jQuery functionality? Do you need to add multiple elements dynamically and are experiencing issues with the settimeout function in Angular4? Any thoughts on how to solve this?
http://jsfiddle.net/pFTfm/195/
var count = 0;
var tolerance = 500;
$('#d1, #d2').mouseenter(function(){
count++;
$('#d3').show();
}).mouseleave(function(){
count--;
setTimeout(function () {
if (!count) {
$('#d3').hide();
}
}, tolerance);
});
in angular
isMouseEnter(e:number){
this.dropdownId = e;
this.toogleDropdown = true;
}
hideDropdown(){
setTimeout(() => {
if(!this.overElement){
this.toogleDropdown = false;
}
else{
this.toogleDropdown = true;
}
}, 100);
}