{"id":1631,"date":"2015-01-21T20:00:53","date_gmt":"2015-01-21T11:00:53","guid":{"rendered":"http:\/\/www.mogumagu.com\/wp\/wordpress\/?p=1631"},"modified":"2015-01-21T18:38:38","modified_gmt":"2015-01-21T09:38:38","slug":"angularjs%e3%81%a7ng-repeart%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e5%8b%95%e7%9a%84%e3%81%ab%e5%85%a5%e5%8a%9b%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0%e3%82%92%e4%bd%9c%e6%88%90%e3%81%97%e3%81%9f%e6%99%82","status":"publish","type":"post","link":"https:\/\/www.mogumagu.com\/wp\/wordpress\/archives\/1631","title":{"rendered":"AngularJS\u3067ng-repeart\u3092\u4f7f\u3063\u3066\u52d5\u7684\u306b\u5165\u529b\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3057\u305f\u6642\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3"},"content":{"rendered":"<div class=\"65a9d09a7d046572b7ae2e4674a406ee\" data-index=\"1\" style=\"float: none; margin:10px 0 10px 0; text-align:center;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-0496250084394782\";\r\ngoogle_ad_slot = \"5624605187\";\r\ngoogle_ad_width = 300;\r\ngoogle_ad_height = 250;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"https:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n<p>AngularJS\u3067ng-repeart\u3092\u4f7f\u3063\u3066\u52d5\u7684\u306b\u5165\u529b\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3057\u305f\u6642\u306b<br \/>\nrequired\u306a\u3069\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u304c\u4e0a\u624b\u304f\u52d5\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u305d\u306e\u3068\u304d\u306e\u5bfe\u51e6\u65b9\u6cd5\u3002<\/p>\n<p>\u3042\u3068\u3001<a href=\"http:\/\/plnkr.co\/\" target=\"_blank\">plunker<\/a>\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u25a0\u901a\u5e38\u306e\u30a8\u30e9\u30fc\u30c1\u30a7\u30c3\u30af\u306e\u4f8b<br \/>\n<a href=\"http:\/\/plnkr.co\/edit\/AXxoyf2ZU5ti7WQDXW70?p=preview\" target=\"_blank\">http:\/\/plnkr.co\/edit\/AXxoyf2ZU5ti7WQDXW70?p=preview<\/a><\/p>\n<p>\u554f\u984c\u304c\u8d77\u304d\u305f\u30b1\u30fc\u30b9\u306finput\u30bf\u30b0\u306a\u3069\u3092ng-repeart\u3092\u4f7f\u3063\u3066<br \/>\n\u8907\u6570\u4f5c\u6210\u3057\u305f\u5834\u5408\u306b\u3067\u3057\u305f\u3002<br \/>\n\u305f\u3068\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a18\u8ff0\u3067\u3059\u3002<br \/>\n\u203b\u5b9f\u969b\u306b\u306f\u30e2\u30fc\u30c0\u30eb\u753b\u9762\u306e\u4e2d\u3067input\u30bf\u30b0\u306e\u52d5\u7684\u8ffd\u52a0\u307f\u305f\u3044\u306a\u3053\u3068\u3092\u3057\u3066\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;form name=&quot;mainForm&quot;&gt;\r\n\t&lt;div ng-repeat=&quot;title in titles&quot;&gt;\r\n\t\t&lt;input type=&quot;text &quot;name=&quot;title{{ $index }}&quot; ng-model=&quot;titles[$index]&quot; required \/&gt;\r\n\t\t&lt;span ng-show=&quot;mainForm.title{{ $index }}.$error.required&quot;&gt;Title required!&lt;\/span&gt;\r\n\t&lt;\/div&gt;\r\n&lt;\/form&gt;\r\n<\/pre>\n<p>\u305f\u3060\u81ea\u5206\u306e\u5834\u5408\u306f\u3053\u308c\u3060\u3068\u5024\u3092\u7a7a\u306b\u3057\u3066\u3082\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n\u30b0\u30b0\u3063\u3066\u307f\u308b\u3068<\/p>\n<p>Dynamic validation and name in a form with AngularJS<br \/>\n<a href=\"http:\/\/stackoverflow.com\/questions\/14378401\/dynamic-validation-and-name-in-a-form-with-angularjs\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/14378401\/dynamic-validation-and-name-in-a-form-with-angularjs<\/a><\/p>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306a\u30da\u30fc\u30b8\u304c\u898b\u3064\u304b\u308a\u3001\u4e0a\u8a18\u30da\u30fc\u30b8\u4e2d\u306e\u2193\u306e\u3088\u3046\u306b\u300c<a href=\"http:\/\/js.studio-kingdom.com\/angularjs\/ng_directive\/ng_form\" target=\"_blank\">ng-form<\/a>\u300d\u3092<br \/>\n\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u6b63\u5e38\u306b\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\nform\u30bf\u30b0\u306e\u5165\u308c\u5b50\u306e\u5229\u7528\u3068\u3044\u3046\u3053\u3068\u304b\u306a\uff1f<br \/>\n\u3053\u308c\u3067\u308f\u3056\u308f\u3056name\u3092\u5909\u3048\u306a\u304f\u3066\u3082\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u304c\u304b\u3051\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;form name=&quot;outerForm&quot;&gt;\r\n&lt;div ng-repeat=&quot;item in items&quot;&gt;\r\n   &lt;ng-form name=&quot;innerForm&quot;&gt;\r\n      &lt;input type=&quot;text&quot; name=&quot;foo&quot; ng-model=&quot;item.foo&quot; \/&gt;\r\n      &lt;span ng-show=&quot;innerForm.foo.$error.required&quot;&gt;required&lt;\/span&gt;\r\n   &lt;\/ng-form&gt;\r\n&lt;\/div&gt;\r\n&lt;input type=&quot;submit&quot; ng-disabled=&quot;outerForm.$invalid&quot; \/&gt;\r\n&lt;\/form&gt;\r\n<\/pre>\n<p><a href=\"http:\/\/js.studio-kingdom.com\/angularjs\/ng_directive\/ng_form\" target=\"_blank\">ng-form<\/a><\/p>\n<blockquote><p>form\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u5165\u308c\u5b50\u306e\u30a8\u30a4\u30ea\u30a2\u30b9\u3067\u3059\u3002 HTML\u306f\u30d5\u30a9\u30fc\u30e0\u8981\u7d20\u306e\u5165\u308c\u5b50\u3092\u8a31\u53ef\u3057\u3066\u3044\u307e\u305b\u3093\u3002 \u4f8b\u3048\u3070\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u30b5\u30d6\u30b0\u30eb\u30fc\u30d7\u306e\u307f\u306e\u691c\u8a3c\u304c\u5fc5\u8981\u306a\u30b1\u30fc\u30b9\u3067\u3001\u5165\u308c\u5b50\u306e\u30d5\u30a9\u30fc\u30e0\u306f\u4fbf\u5229\u3067\u3059\u3002<\/p><\/blockquote>\n<p>\u25a0ng-repeat\u3092\u4f7f\u3063\u305f\u30d5\u30a9\u30fc\u30e0\u306e\u30a8\u30e9\u30fc\u30c1\u30a7\u30c3\u30af\u4f8b<br \/>\n<a href=\"http:\/\/plnkr.co\/edit\/1cccXO6UmCi4K6it78Zj?p=preview\" target=\"_blank\">http:\/\/plnkr.co\/edit\/1cccXO6UmCi4K6it78Zj?p=preview<\/a><\/p>\n<p>&nbsp;<\/p>\n<p><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?t=lax34weddojp-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=4844336681&amp;ref=qf_sp_asin_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" width=\"300\" height=\"150\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?t=lax34weddojp-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=4873116678&amp;ref=qf_sp_asin_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" width=\"300\" height=\"150\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<div class=\"65a9d09a7d046572b7ae2e4674a406ee\" data-index=\"3\" style=\"float: none; margin:10px 0 10px 0; text-align:center;\">\n<script type=\"text\/javascript\"><!--\r\namazon_ad_tag = \"lax34weddojp-22\"; amazon_ad_width = \"468\"; amazon_ad_height = \"60\"; amazon_ad_link_target = \"new\"; amazon_ad_border = \"hide\";\/\/--><\/script>\r\n<script type=\"text\/javascript\" src=\"https:\/\/www.assoc-amazon.jp\/s\/ads.js\"><\/script>\n<\/div>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>AngularJS\u3067ng-repeart\u3092\u4f7f\u3063\u3066\u52d5\u7684\u306b\u5165\u529b\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3057\u305f\u6642\u306b required\u306a\u3069\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u304c\u4e0a\u624b\u304f\u52d5\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u305d\u306e\u3068\u304d\u306e\u5bfe\u51e6\u65b9\u6cd5\u3002 \u3042\u3068\u3001plunker\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002 \u25a0\u901a\u5e38\u306e\u30a8\u30e9\u30fc\u30c1\u30a7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[59,7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.mogumagu.com\/wp\/wordpress\/wp-json\/wp\/v2\/posts\/1631"}],"collection":[{"href":"https:\/\/www.mogumagu.com\/wp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mogumagu.com\/wp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mogumagu.com\/wp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mogumagu.com\/wp\/wordpress\/wp-json\/wp\/v2\/comments?post=1631"}],"version-history":[{"count":5,"href":"https:\/\/www.mogumagu.com\/wp\/wordpress\/wp-json\/wp\/v2\/posts\/1631\/revisions"}],"predecessor-version":[{"id":1636,"href":"https:\/\/www.mogumagu.com\/wp\/wordpress\/wp-json\/wp\/v2\/posts\/1631\/revisions\/1636"}],"wp:attachment":[{"href":"https:\/\/www.mogumagu.com\/wp\/wordpress\/wp-json\/wp\/v2\/media?parent=1631"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mogumagu.com\/wp\/wordpress\/wp-json\/wp\/v2\/categories?post=1631"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mogumagu.com\/wp\/wordpress\/wp-json\/wp\/v2\/tags?post=1631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}