Hi,
I'm trying to show the message in popover/tooltip when text box satisfied the below conditions
1.Only allows number and 12 digits too.
Here,
I have created the custom ng-enter directive to allow key code = 13.
I'm using ng-pattern="/^\d{12}$/" for above mentioned conditions.
Now I have call one method for getting data in server when the above conditions are satisfied.
If that number is not present in server, popover will come with some message like "this requested no is not found"
I have call this popover in method failure callback.
Here is the problem
when I sent the request,that req will fails and it goes to failure callback, but popover does not initialized.SO It wont come.
If I enter 2nd time,it comes.
I have trigger th popover like below,
.config(['$tooltipProvider', function($tooltipProvider) {
$tooltipProvider.setTriggers({
'keypress': 'mouseleave',
'never': 'keydown'
});
}])
I think its the time delay of calling popover trigger?
Can u solve it?