Use timeout(0) in tooltip directive
Better explanation for the use of $timeout