marcysutton / ng-aria

Angular module to added ARIA tags automatically

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ngAria Build Status

This module is aims to help you implement aria attributes to your angular app.

Currently implemented aria attributes:

  • aria-hidden
  • aria-checked
  • aria-disabled
  • aria-required
  • aria-invalid

Usage

var app = angular.module('myAwesomeApp', ['angularAria']).config(['ariaProvider', function(ariaProvider){
    // This will just enable ariaBindings to their default setting
    ariaProvider.enable();
  
    // You can use this to disable specific attributes from being enabled.
    ariaProvider.setConfig({
      ariaHidden: false
    });

}]);

About

Angular module to added ARIA tags automatically