Did you already try scope.$apply(); ?

Please provide the full code where the jQuery plugin is initialized.... 
Probably in a Angular directive?

Thanks...


Op woensdag 16 maart 2016 19:03:40 UTC+1 schreef mahmoud nassih:
>
> I'm building a web app for a touch screen computer which needs an 
> on-screen keyboard and am attempting to use this excellent (or the least 
> the only one I was able to find that wasn't terrible) keyboard. 
> https://github.com/Mottie/Keyboard/
>
> The problem is, as you might have guessed already, that the model doesn't 
> get updated when using the on-screen keyboard. This is my code, which sort 
> of works but it all sorts of ugly:
>
> The partitial HTML:
>
> <input type="text" class="keyboard" ng-model="newUser.name"><input 
> type="text" class="keyboard" ng-model="newUser.email>
>
> Initializing the keyboard, from the partitial page controller:
>
> $('.keyboard').keyboard({
>     stickyShift: false,
>     usePreview: false,
>     autoAccept: true,
>
>     visible: function(e, kb, el) {
>         scope.newUser= el.value;
>     }});
>
> So on change triggered by the jQuery plugin I can run something. Obviously 
> this only works updating a single field/model, the name one (while the 
> email one doesn't work at all and will overwrite the name field), I need 
> any number of fields to be updated when used with the keyboard, and the 
> correct one. How do I solve this in a less terrible, not hardcoded (if 
> possible and not too complex) way?
>

-- 
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to