$scope.$watch('ModalVariables.selectedCurrency', function (newVal) {
if(newVal)
{
----some code---
}
}
when user open form in edit mode the $watch should not fire the code lines
after form loads all data
and user change currency then code in $watch should fire.
how can i do that?
--
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/d/optout.