You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the additional watch shown above, there is a problem with validation - the value is not validated and is show invalid required even if set. The solution is to modify momentToValue method instead of adding a watch:
Input:
If model is set to string - it is ignored. See Plunkr
I have no TS coding experience, so I made changes to JS directly. See Plunkr
The change I made is adding one more watcher after the watcher
if ($attrs['ngModel'] != $attrs['momentPicker'])
:You can check the exact change at this comit
The text was updated successfully, but these errors were encountered: