Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit c33ee9b

Browse files
committed
refactor(ngAria): remove usused dependency
(As mentioned in d06431e#commitcomment-15871053.)
1 parent a460ce4 commit c33ee9b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/content/guide/accessibility.ngdoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Currently, ngAria interfaces with the following directives:
4444

4545
<h2 id="ngmodel">ngModel</h2>
4646

47-
Much of ngAria's heavy lifting happens in the {@link ng.ngModel ngModel}
47+
Much of ngAria's heavy lifting happens in the {@link ng.directive:ngModel ngModel}
4848
directive. For elements using ngModel, special attention is paid by ngAria if that element also
4949
has a role or type of `checkbox`, `radio`, `range` or `textbox`.
5050

@@ -143,7 +143,7 @@ it with your keyboard and at least one mobile and desktop screen reader.
143143
<h2 id="ngvaluechecked">ngValue and ngChecked</h2>
144144

145145
To ease the transition between native inputs and custom controls, ngAria now supports
146-
{@link ng.ngValue ngValue} and {@link ng.ngChecked ngChecked}.
146+
{@link ng.directive:ngValue ngValue} and {@link ng.directive:ngChecked ngChecked}.
147147
The original directives were created for native inputs only, so ngAria extends
148148
support to custom elements by managing `aria-checked` for accessibility.
149149

@@ -165,7 +165,7 @@ Becomes:
165165

166166
The `disabled` attribute is only valid for certain elements such as `button`, `input` and
167167
`textarea`. To properly disable custom element directives such as `<md-checkbox>` or `<taco-tab>`,
168-
using ngAria with {@link ng.ngDisabled ngDisabled} will also
168+
using ngAria with {@link ng.directive:ngDisabled ngDisabled} will also
169169
add `aria-disabled`. This tells assistive technologies when a non-native input is disabled, helping
170170
custom controls to be more accessible.
171171

@@ -188,7 +188,7 @@ Becomes:
188188

189189
The boolean `required` attribute is only valid for native form controls such as `input` and
190190
`textarea`. To properly indicate custom element directives such as `<md-checkbox>` or `<custom-input>`
191-
as required, using ngAria with {@link ng.ngRequired ngRequired} will also add
191+
as required, using ngAria with {@link ng.directive:ngRequired ngRequired} will also add
192192
`aria-required`. This tells accessibility APIs when a custom control is required.
193193

194194
###Example
@@ -205,7 +205,7 @@ Becomes:
205205

206206
<h2 id="ngshow">ngShow</h2>
207207

208-
>The {@link ng.ngShow ngShow} directive shows or hides the
208+
>The {@link ng.directive:ngShow ngShow} directive shows or hides the
209209
given HTML element based on the expression provided to the `ngShow` attribute. The element is
210210
shown or hidden by removing or adding the `.ng-hide` CSS class onto the element.
211211

@@ -242,7 +242,7 @@ Becomes:
242242

243243
<h2 id="nghide">ngHide</h2>
244244

245-
>The {@link ng.ngHide ngHide} directive shows or hides the
245+
>The {@link ng.directive:ngHide ngHide} directive shows or hides the
246246
given HTML element based on the expression provided to the `ngHide` attribute. The element is
247247
shown or hidden by removing or adding the `.ng-hide` CSS class onto the element.
248248

src/ngAria/aria.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ ngAriaModule.directive('ngShow', ['$aria', function($aria) {
212212
.directive('ngRequired', ['$aria', function($aria) {
213213
return $aria.$$watchExpr('ngRequired', 'aria-required', nodeBlackList, false);
214214
}])
215-
.directive('ngModel', ['$aria', '$parse', function($aria, $parse) {
215+
.directive('ngModel', ['$aria', function($aria) {
216216

217217
function shouldAttachAttr(attr, normalizedAttr, elem, allowBlacklistEls) {
218218
return $aria.config(normalizedAttr) && !elem.attr(attr) && (allowBlacklistEls || !isNodeOneOf(elem, nodeBlackList));

0 commit comments

Comments
 (0)