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?*
On Thursday, 27 February 2014 12:13:39 UTC+5:30, Luke Kende wrote:
>
> what do you mean? pretty much all directives are "immediate".
>
> ng-bind
> ng-include
> ng-show/hide
> ng-switch
>
> and so on
>
>
> On Wednesday, February 26, 2014 8:19:04 AM UTC-7, Sowmiya wrote:
>>
>> *Hi,*
>>
>> * Is there any directive to affect immediately between controller and
>> view except ng-model?*
>>
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.