I am trying to integrate angular-tooltips with input form. I want to change tooltip text on registrationForm.email.$error object change.
HTML:
<input tooltips tooltip-html="{{ emailToolTip }}" tooltip-show-trigger="focus" tooltip-hide-trigger="blur" tooltip-side="right"/>
<div>{{emailToolTip}}</div>
Controller:
$scope.emailToolTip = 'Initial tooltip';
$scope.$watch('registrationForm.email.$error', function (newVal) {
$scope.emailToolTip = 'Updated tooltip';
}}, true);
above code changes <div> value but it doesn't change <input>'s 'tooltip-html' attribute value. Am I missing anything or is it a bug?
I am using this angular-tooltips library https://github.com/720kb/angular-tooltips
tooltip-show-triggerwith custom events or something similar. I want to show tooltip at page load butonload,load,onreadyetc are not working. Any idea, how we can do it?