Skip to content

Tag Archives: AngularJS-Directives

The ng-class Directive in AngularJS is used to specify the CSS classes on HTML elements. It is used to dynamically bind classes on an HTML… Read More
The ng-pluralize Directive in AngularJS is used to specify the message to display according to the en-us localization rules. The en-us localization rules are bundled… Read More
The ng-pattern Directive in AngularJS is used to add up pattern (regex pattern) validator to ngModel on input HTML element. It is used to set… Read More
The ng-style Directive in AngularJS is used to apply custom CSS styles on an HTML element. The expression inside the ng-style directive must be an… Read More
The ng-switch Directive in AngularJS is used to specify the condition to show/hide the child elements in HTML DOM. The HTML element will be displayed… Read More
The ng-show Directive in AngluarJS is used to show or hide the specified HTML element. If given expression in ng-show attribute is true then the… Read More
The ng-srcset Directive in AngularJS is used to specify the srcset attribute of an <img> element. It ensures that the wrong image is not produced… Read More
The ng-src Directive in AngularJS is used to specify the src attribute of an <img> element. It ensures that the wrong image is not produced… Read More
The ng-submit Directive in AngularJS is used to specify the functions to be run on submit events. It can be used to prevent the form… Read More
The ng-app Directive in AngularJS is used to define the root element of an AngularJS application. This directive automatically initializes the AngularJS application on page… Read More
The ng-href directive is used when we have an angular expression inside the href value. If href attribute is used then the problem is that… Read More
The ng-required Directive in AngularJS is used to specify the required attribute of an HTML element. The input field in the form is required only… Read More
The ng-init directive is used to initialize an AngularJS Application data. It defines the initial value for an AngularJS application and assigns values to the… Read More
The ng-paste Directive in AngularJS is used to specify custom behavior functions when the text in input fields is pasted into an HTML element. It… Read More
The ng-open Directive in AngularJS is used to specify the open attribute of the specified HTML element. If the expression inside the ng-open directive returns… Read More