Html DOM

Google Advertisements

AngularJS Expression AngularJS Filters

Html DOM

AngularJS has directives for binding application data to the attributes of HTML DOM elements. The following directives are used to bind application data to the attributes of HTML DOM elements;

S.No.NameDescription
1ng-disabledTo Disables a given control of Html elements.
2ng-showTo Shows a given control of Html elements.
3ng-hideTo Hides a given control of Html elements.
4ng-clickTo perform AngularJS click event.

ng-disable Directive

ng-disable directive are use for binds AngularJS application data to the disabled attribute of HTML elements.

Example

<div ng-app="">
<input type="checkbox" ng-model="enableDisableButton">Disable Button
<button ng-disabled="enableDisableButton">Click Me!</button>
</div> 

Result

Disable Button

ng-show Directive

ng-show directive are use for show or hide Html elements.

<div ng-app="">
<input type="checkbox" ng-model="hideme">Show Button
<button ng-show="hideme">Click Me!</button>
</div> 

ng-hide Directive

ng-hide directive are use for hide or show an Html elements.

Example

<div ng-app="">
<input type="checkbox" ng-model="hideme">Hide Button
<button ng-hide="hideme">Click Me!</button>
</div> 

ng-click Directive

ng-click directive are use for perform an AngularJS click event.

Example

<div ng-app="" ng-controller="clickController">

<button ng-click="count = count + 1">Click Me!</button>

<p>{{ count }}</p>

</div>
<script>
function clickController($scope) {
    $scope.count = 0;
}
</script>

AngularJS Expression AngularJS Filters

Google Advertisements

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: [email protected] or 8076671483

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

Download Projects

Media.net Advertisements


Buy Websites 9999595223

Buy Fresh and Payment Receive Media.net Account with Website. Contact on: [email protected] or 9999595223 Try this Keyword C++ Programs