I want to customize the request $error, and return the name of $error according to the interface request to determine the corresponding prompt for ng-show prompts to the user: For example: regForm.$error.isWrong
I don’t understand why $error needs to be redefined. Wouldn’t it be better if you process the $error returned by the interface, convert it into the desired format, and then implement two-way binding on the page?
I don’t understand why $error needs to be redefined.
Wouldn’t it be better if you process the $error returned by the interface, convert it into the desired format, and then implement two-way binding on the page?