Hi,
I'm trying to show the popover message when below conditions are satisfied.
1.Only allows number
2.That no is only 12 digits.
Here I'm using ng-keypress directive in angular and tooltip provider in
bootstrap.
<input type="search" class="form-control" id="search" name="search"
ng-model="model.sn" ng-minlength="12" ng-maxlength="12"
ng-pattern="/^\d{12}$/" ng-keypress="form.search.$valid &&
showPopover($event)" popover="{{ui.popoverText}}"
popover-trigger="{{{true:'mouseenter',false:'never',true:'keypress'}[form.search.$valid
&& model.sn.length != 0]}}" popover-placement="left">
My problem is, im getting the popover by 2nd request. For the 1st request
angular doesnt notify the bootstrap event I think so.
Is there any possibilities to overcome this?
--
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.