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

Commit 3b60b88

Browse files
ThomasBurlesonmmalerba
authored andcommitted
docs(radioButton): ngModel and ngChange are mdRadioGroup properties (#10473)
`ngModel` and `ngChange` are part of the `mdRadioGroup` directive and not of the `mdRadioButton` directive. Thx to @sebakerckhof! Fixes #10421.
1 parent 69a0d8b commit 3b60b88

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/radioButton/radio-button.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ angular.module('material.components.radioButton', [
3232
*
3333
* @param {string} ng-model Assignable angular expression to data-bind to.
3434
* @param {boolean=} md-no-ink Use of attribute indicates flag to disable ink ripple effects.
35+
* @param {string} ngModel Assignable angular expression to data-bind to.
36+
* @param {string=} ngChange AngularJS expression to be executed when input changes due to user
37+
* interaction with the input element.
3538
*
3639
* @usage
3740
* <hljs lang="html">
@@ -224,9 +227,6 @@ function mdRadioGroupDirective($mdUtil, $mdConstant, $mdTheming, $timeout) {
224227
* the `<md-radio-button>` directive provides ink effects, ARIA support, and
225228
* supports use within named radio groups.
226229
*
227-
* @param {string} ngModel Assignable angular expression to data-bind to.
228-
* @param {string=} ngChange AngularJS expression to be executed when input changes due to user
229-
* interaction with the input element.
230230
* @param {string} ngValue AngularJS expression which sets the value to which the expression should
231231
* be set when selected.
232232
* @param {string} value The value to which the expression should be set when selected.
@@ -241,7 +241,7 @@ function mdRadioGroupDirective($mdUtil, $mdConstant, $mdTheming, $timeout) {
241241
* Label 1
242242
* </md-radio-button>
243243
*
244-
* <md-radio-button ng-model="color" ng-value="specialValue" aria-label="Green">
244+
* <md-radio-button ng-value="specialValue" aria-label="Green">
245245
* Green
246246
* </md-radio-button>
247247
*

0 commit comments

Comments
 (0)