阅读背景:

从角度2中的表单验证器方法访问类变量

来源:互联网 

I'm trying to build a modal driven form with custom validation. I want to Validate that the password the user insert answer the requirements (Uppercase latter,lowercase latter and number). The issue is that I don't want to write the regex especially in the method,I want to have an ineluctable service that concentrate all of my regex. I was able to inject the service to the component class but couldn't in any way access to the service instance inside the validetor method.I'm trying to build a modal driven form with cu




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: