Hi,
there is no clean solution as these are the browsers' responsibility
to notify about changes.
I think, in order to avoid stuff like you said like:
$scope.username = $(..selector..).val()
you could try a writing a directive similar to ng-model, but triggered
manually - e.g. by broadcasting a message.
Now, there are two options:
(#1) when submitting a form, from within controller, you would
broadcast a "event:submit" message, or
(#2) you would create extra submit directive, so it would be
responsible for making a special notofication.
Option #2 is "cleaner" because controller is not involved into
problems caused by browsers, but #1 is easier to implement, because
there is no need to make extra submit directive.
Just now I have figured out that the #2 option could be incorporated
into core angular, so ng-bind could have some extra switch to
synchronize on extra message event and submit actions could also be
set up for extra message broadcasting. AngularJS users would use it in
special cases when browsers do broken autocomplete...
What do you think?
Regards,
Witold Szczerba
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To post to this group, send email to
ang...@googlegroups.com.
> To unsubscribe from this group, send email to
>
angular+u...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/angular?hl=en.
>
>