{"id":936,"date":"2023-05-21T03:45:28","date_gmt":"2023-05-21T03:45:28","guid":{"rendered":"https:\/\/itnotes.apjsoftwares.com\/?p=936"},"modified":"2023-05-21T03:46:52","modified_gmt":"2023-05-21T03:46:52","slug":"write-a-program-to-hide-an-html-tag-just-by-one-button-click-in-angular","status":"publish","type":"post","link":"https:\/\/itnotes.apjsoftwares.in\/index.php\/2023\/05\/21\/write-a-program-to-hide-an-html-tag-just-by-one-button-click-in-angular\/","title":{"rendered":"Write a program to hide an HTML tag just by one button click in angular"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\">&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n    &lt;meta chrset=\"UTF 8\">\n    &lt;title>Event Registration&lt;\/title>\n&lt;\/head>\n&lt;body>\n&lt;script src=\"https:\/\/code.angularjs.org\/1.6.9\/angular.js\">&lt;\/script>\n&lt;script src=\"https:\/\/code.jquery.com\/jquery-3.3.1.min.js\">&lt;\/script>\n\n&lt;h1> IT Notes&lt;\/h1>\n&lt;div ng-app=\"DemoApp\" ng-controller=\"DemoController\">\n    &lt;input type=\"button\" value=\"Hide Angular\" ng-click=\"ShowHide()\"\/>\n    &lt;br>&lt;br>&lt;div ng-hide=\"IsVisible\">Angular&lt;\/div>\n&lt;\/div>\n&lt;script type=\"text\/javascript\">\n    var app = angular.module('DemoApp',[]);\n    app.controller('DemoController',function($scope){\n        $scope.IsVisible = false;\n        $scope.ShowHide = function(){\n            $scope.IsVisible = $scope.IsVisible = true;\n        }\n        });\n&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&lt;!DOCTYPE html> &lt;html> &lt;head> &lt;meta chrset=&#8221;UTF 8&#8243;> &lt;title>Event Registration&lt;\/title> &lt;\/head> &lt;body> &lt;script src=&#8221;https:\/\/code.angularjs.org\/1.6.9\/angular.js&#8221;>&lt;\/script> &lt;script src=&#8221;https:\/\/code.jquery.com\/jquery-3.3.1.min.js&#8221;>&lt;\/script>&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[25],"tags":[],"_links":{"self":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/936"}],"collection":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/comments?post=936"}],"version-history":[{"count":1,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/936\/revisions"}],"predecessor-version":[{"id":937,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/936\/revisions\/937"}],"wp:attachment":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/media?parent=936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/categories?post=936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/tags?post=936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}