-
Notifications
You must be signed in to change notification settings - Fork 27.4k
$setViewValue revalidate parameter #8481
Comments
This (the You should not use it in angular-ui. @matsko's form refactoring will likely make it useless and we will be able to revert it. |
/cc @matsko please inform me if you've already made that "feature" redundant, because it would be really nice to get rid of it |
@caitp how will you suggest to force this rerun then? |
In the future, most of this stuff will be moved out of $parsers/$formatters, and you should be able to just use the |
I see that $setViewValue has a third parameter (revalidate) that I'm setting to
true
to force$parsers
to run and recreate$modelValue
this.$setViewValue = function(value, trigger, revalidate) {
https://github.com/angular/angular.js/blob/master/src/ng/directive/input.js#L1928
At the docs I don't see this third parameter documented, is it save to use it?
I'm using it on this PR angular-ui/ui-select#138
The text was updated successfully, but these errors were encountered: