javascript - Angular. How to change model value during validation in input? -


कृपया, इनपुट क्षेत्र के लिए 'myValidation' निर्देश का वर्णन कैसे करें

  & Lt; input my-validation ng- मॉडल = "myValue" & gt;  

इसे निम्न प्रकार से व्यवहार करने के लिए:

  1. यदि उपयोगकर्ता इनपुट 'A' डायरेक्टिव को myValue
  2. अन्यथा बस मूल मान

    'बी' = "Post-text" itemprop = "text">

    आप myValue पर एक घड़ी बना सकते हैं और जब मान बदल जाता है तो अपना सत्यापन करें ...

      

    पिंड:


Comments

Popular posts from this blog

c# - Reactive Extensions ControlScheduler -

ios - How to determine if NSLayoutConstraint is horizontal or vertical? -

c# - Updated Castle to 3.2.1 from 3.0.0 now I cant use FirstNonGenericCoreInterface -