my cms requires that I use fields[name]
or fields[email]
as input name. I'm having troubles using this name for testing its validity. Es. {{contactForm.fields[email].$valid}}
returns null. How can I use the field name as is?
我的cms要求我使用字段[name]或字段[email]作为输入名称。我在使用这个名字测试它的有效性时遇到了麻烦。 ES。 {{contactForm.fields [email]。$ valid}}返回null。我该如何使用字段名称?
Thanks!
1 个解决方案
#1
{{contactForm['fields[email]'].$valid}}
#1
{{contactForm['fields[email]'].$valid}}