角度js中的嵌套验证 [英] Nested validation in angular js
问题描述
我是 angular js 的新手.我已经失去了很多次准备验证.许多示例都用于总表单验证.现在我必须明智地做有效的范围.我在下面以图形方式显示了我的问题.
i am a new in angular js. i have lost many times for preparing validation. many example has for total form validation. now i have to do the valid scope wise. I have shown my problem graphically below.
这里保存黄色和红色有两部分,当我单击黄色保存按钮时,将针对红色标记范围进行验证,当我单击红色保存按钮时,将对整个页面内容进行验证.我怎么解决这个问题?有人可以帮我吗?
Here save yellow and red there are two portion, when i will click yellow save button then validation will be fire for red mark scope and when i will click red save button then validation will be fire for total page content. how can i solve this problem? can any one help me?
推荐答案
http://scotch.io/tutorials/javascript/angularjs-form-validation 此链接以演示的详细方式对 angularjs 进行了验证.尝试复制这个.希望这会有所帮助.
http://scotch.io/tutorials/javascript/angularjs-form-validation This link has validation for angularjs in a detailed manner with demo. Try replicating this. Hope this helps.
这篇关于角度js中的嵌套验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!