﻿
{"id":7127,"date":"2018-03-17T13:28:55","date_gmt":"2018-03-17T13:28:55","guid":{"rendered":"http:\/\/www.gencayyildiz.com\/blog\/?p=7127"},"modified":"2018-03-17T13:29:56","modified_gmt":"2018-03-17T13:29:56","slug":"angularjs-ng-disabled-direktifi","status":"publish","type":"post","link":"https:\/\/www.gencayyildiz.com\/blog\/angularjs-ng-disabled-direktifi\/","title":{"rendered":"AngularJS &#8211; ng-disabled Direktifi"},"content":{"rendered":"<div id=\"fb-root\"><\/div>\n<p>Merhaba,<\/p>\n<p>HTML etiketlerini pasifize etmek i\u00e7in kulland\u0131\u011f\u0131m\u0131z &#8220;disabled&#8221; attribute&#8217;una AngularJS&#8217;de m\u00fcdahale edebilmek i\u00e7in ng-disabled direktifi olu\u015fturulmu\u015ftur. Bu direktif sayesinde anl\u0131k bir m\u00fcdahaleyle istedi\u011fimiz html eleman\u0131n\u0131n disabled niteli\u011finde de\u011fi\u015fikiklik yapabilir ve projemize h\u0131z kazand\u0131rabiliriz.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n    &lt;script src=&quot;~\/Scripts\/angular.min.js&quot;&gt;&lt;\/script&gt;\r\n&lt;\/head&gt;\r\n&lt;body ng-app=&quot;&quot;&gt;\r\n    &lt;input type=&quot;checkbox&quot; ng-model=&quot;Durum&quot; \/&gt;\r\n    &lt;br \/&gt;\r\n    &lt;!-- Durum modeli text nesnesine ba\u011flanmaktad\u0131r.--&gt;\r\n    &lt;input type=&quot;text&quot; ng-disabled=&quot;Durum&quot; \/&gt;\r\n    &lt;br \/&gt;\r\n    &lt;select&gt;\r\n        &lt;option&gt;De\u011fer1&lt;\/option&gt;\r\n        &lt;option&gt;De\u011fer2&lt;\/option&gt;\r\n        &lt;!-- Durum modeli select nesnesi i\u00e7erisindeki option nesnesine ba\u011flanmaktad\u0131r.--&gt;\r\n        &lt;option ng-disabled=&quot;Durum&quot;&gt;De\u011fer3&lt;\/option&gt;\r\n        &lt;option&gt;De\u011fer4&lt;\/option&gt;\r\n    &lt;\/select&gt;\r\n    &lt;br \/&gt;\r\n    &lt;!-- Durum modeli select nesnesine ba\u011flanmaktad\u0131r.--&gt;\r\n    &lt;select ng-disabled=&quot;Durum&quot;&gt;\r\n        &lt;option&gt;De\u011fer1&lt;\/option&gt;\r\n        &lt;option&gt;De\u011fer2&lt;\/option&gt;\r\n        &lt;option&gt;De\u011fer3&lt;\/option&gt;\r\n        &lt;option&gt;De\u011fer4&lt;\/option&gt;\r\n    &lt;\/select&gt;\r\n    &lt;br \/&gt;\r\n    &lt;!-- Durum modeli color nesnesine ba\u011flanmaktad\u0131r.--&gt;\r\n    &lt;input type=&quot;color&quot; ng-disabled=&quot;Durum&quot; \/&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p>Yukar\u0131daki kod blo\u011funu incelerseniz e\u011fer checkbox nesnesine ba\u011flanan &#8220;Durum&#8221; modeli ile di\u011fer nesnelerin ng-disabled direktifi beslenmekte ve \u015fekillendirilmektedir.<br \/>\n<a href=\"http:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/03\/AngularJS-ng-disabled-Direktifi.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/03\/AngularJS-ng-disabled-Direktifi.gif\" alt=\"AngularJS - ng-disabled Direktifi\" width=\"460\" height=\"338\" class=\"aligncenter size-full wp-image-7128\" \/><\/a><\/p>\n<p>Sonraki yaz\u0131lar\u0131mda g\u00f6r\u00fc\u015fmek \u00fczere&#8230;<br \/>\n\u0130yi \u00e7al\u0131\u015fmalar&#8230;<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Merhaba, HTML etiketlerini pasifize etmek i\u00e7in kulland\u0131\u011f\u0131m\u0131z &#8220;disabled&#8221; attribute&#8217;una AngularJS&#8217;de m\u00fcdahale edebilmek i\u00e7in ng-disabled direktifi olu\u015fturulmu\u015ftur. Bu direktif sayesinde anl\u0131k bir m\u00fcdahaleyle istedi\u011fimiz html eleman\u0131n\u0131n disabled niteli\u011finde de\u011fi\u015fikiklik yapabilir ve projemize h\u0131z kazand\u0131rabiliriz. &lt;!DOCTYPE&#46;&#46;&#46;<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":7002,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2022],"tags":[2024,2097,2099,2098],"class_list":["post-7127","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-angularjs","tag-angularjs","tag-angularjs-ng-disabled-direktifi","tag-ng-disabled","tag-ng-disabled-direktifi"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/7127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/comments?post=7127"}],"version-history":[{"count":0,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/7127\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media\/7002"}],"wp:attachment":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media?parent=7127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/categories?post=7127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/tags?post=7127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}