I'm trying to change the position of a tooltip (based on the AngularJS Bootstrap UI) depending on the screen resolution, basically to have the first on mobile, and the second one on the rest (min-width ≥ 768px):
tooltip-placement="top"
tooltip-placement="left"
I've found a solution using jQuery (the next piece of code) but I wouldn't know how to implement it in Angular.
$(window).on('resize', function() {
var pos = ($(window).width() < 768) ? 'left' : 'top';
$("#myDiv").tooltip({'placement': pos});
}).trigger('resize');
Any hints?