Use the <input>
or the <textarea>
as a child of an <md-input-container>
.
Requires ngMessages. Behaves like the AngularJS input directive.
Parameter | Type | Description |
---|---|---|
md-maxlength
number
|
number |
The maximum number of characters allowed in this input. If this is specified, a character counter will be shown underneath the input. |
aria-label
string
|
string |
Aria-label is required when no label is present. A warning message will be logged in the console if not present. |
placeholder
string
|
string |
An alternative approach to using aria-label when the label is not present. The placeholder text is copied to the aria-label attribute. |
md-no-autogrow
boolean
|
boolean |
When present, textareas will not grow automatically. |