Closed feitian124 closed 10 years ago
{{#validate-with propertyBinding="user.login"}} <label> {{validate-message}} </label> {{input valueBinding="user.login"}} {{/validate-with}}
in above use case, user.login is where the input value stored and validate rule stored. what if i want to validate a custom variable? myname
user.login
myname
{{#validate-with propertyBinding="user.login"}} <label> {{validate-message}} </label> {{input valueBinding="myname"}} {{/validate-with}}
in above use case,
user.login
is where the input value stored and validate rule stored. what if i want to validate a custom variable?myname