Used for configuring the ARIA attributes injected and managed by ngAria.
angular.module('myApp', ['ngAria'], function config($ariaProvider) { $ariaProvider.config({ ariaValue: true, tabindex: false }); });
Dependencies
Requires the ngAria
module to be installed.
Methods
-
config(config);
Enables/disables various ARIA attributes
Parameters
Param Type Details config object
object to enable/disable specific ARIA attributes
-
ariaHidden â
{boolean}
â Enables/disables aria-hidden tags -
ariaChecked â
{boolean}
â Enables/disables aria-checked tags -
ariaDisabled â
{boolean}
â Enables/disables aria-disabled tags -
ariaRequired â
{boolean}
â Enables/disables aria-required tags -
ariaInvalid â
{boolean}
â Enables/disables aria-invalid tags -
ariaValue â
{boolean}
â Enables/disables aria-valuemin, aria-valuemax and aria-valuenow tags -
tabindex â
{boolean}
â Enables/disables tabindex tags -
bindKeypress â
{boolean}
â Enables/disables keypress event binding ondiv
andli
elements with ng-click -
bindRoleForClick â
{boolean}
â Adds role=button to non-interactive elements likediv
using ng-click, making them more accessible to users of assistive technologies
-
ariaHidden â
Please login to continue.