Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 8573766

Browse files
naomiblackchirayuk
authored andcommitted
docs(ng_model): Fix style of some of the directive entries
1 parent c72b2b2 commit 8573766

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed

lib/directive/ng_model.dart

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class NgModel extends NgControl implements AttachAware {
268268

269269
/**
270270
* Creates a two-way databinding between the `ng-model` expression
271-
* and the checkbox input element state.
271+
* and the checkbox input element state. `Selector: input[type=checkbox][ng-model]`
272272
*
273273
* **Usage**
274274
*
@@ -279,21 +279,25 @@ class NgModel extends NgControl implements AttachAware {
279279
* >
280280
*
281281
* If the optional `ng-true-value` is absent,
282-
* - if the model expression evaluates to true or to a nonzero [:num:],
282+
*
283+
* * if the model expression evaluates to true or to a nonzero [:num:],
283284
* then the checkbox is checked
284-
* - otherwise, the checkbox is unchecked
285+
* * otherwise, the checkbox is unchecked
285286
*
286287
* If `ng-true-value="t_expr"` is present,
287-
* - if the model expression evaluates to the same value as `t_expr`, then the checkbox is checked
288-
* - otherwise, it is unchecked.
288+
*
289+
* * if the model expression evaluates to the same value as `t_expr`, then the checkbox is checked
290+
* * otherwise, it is unchecked.
289291
*
290292
* When the checkbox is checked,
291-
* - the model is set to the value of `t_expr` if present
292-
* - otherwise, the model is set to `true`
293+
*
294+
* * the model is set to the value of `t_expr` if present
295+
* * otherwise, the model is set to `true`
293296
*
294297
* When the checkbox is unchecked,
295-
* - the model is set to the value of `f_expr` if present
296-
* - otherwise, the model is set to false.
298+
*
299+
* * the model is set to the value of `f_expr` if present
300+
* * otherwise, the model is set to false.
297301
*
298302
* Also see [NgTrueValue] and [NgFalseValue].
299303
*/
@@ -393,7 +397,7 @@ class InputTextLike {
393397

394398
/**
395399
* Creates a two-way databinding between the `ng-model` expression
396-
* and a numeric input element.
400+
* and a numeric input element. `Selector:input[type=number|range][ng-model]
397401
*
398402
* **Usage**
399403
*
@@ -546,15 +550,16 @@ class NgBindTypeForDateLike {
546550

547551
/**
548552
* Controls the IDL attribute that reads the value of a date/time input,
549-
* to support browsers that deviate from the HTML5 standard for date/time.
553+
* to support browsers that deviate from the HTML5 standard for date/time. `Selector:
554+
* input[type=date|datetime|datetime-local|month|time|week][ng-model]`
550555
*
551556
* The [HTML5 Standard](http://www.w3.org/TR/html5/forms.html#the-input-element) for date/time
552-
* related inputs specifies that the [dom.InputElement.valueAsDate] and
553-
* [dom.InputElement.valueAsNumber] IDL attributes should be available for all date/time related
554-
* input types, except for `datetime-local` which is limited to [dom.InputElement.valueNumber].
557+
* related inputs specifies that the `dom.InputElement.valueAsDate` and
558+
* `dom.InputElement.valueAsNumber` IDL attributes should be available for all date/time related
559+
* input types, except for `datetime-local` which is limited to `dom.InputElement.valueNumber`.
555560
*
556561
* This directive creates a two-way binding between the input and a model
557-
* property. The subordinate 'ng-bind-type' directive determines which input
562+
* property. The subordinate `ng-bind-type` directive determines which input
558563
* IDL attribute is read (see [NgBindTypeForDateLike] for details) and
559564
* hence the type of the read values.
560565
*
@@ -760,7 +765,7 @@ class NgFalseValue {
760765

761766
/**
762767
* Creates a two-way databinding between the `ng-model` expression
763-
* and the radio input elements in the DOM.
768+
* and the radio input elements in the DOM. `Selector: input[type=radio][ng-model]`
764769
*
765770
* **Usage**
766771
*
@@ -811,7 +816,7 @@ class InputRadio {
811816

812817
/**
813818
* Creates a two-way databinding between the expression specified in `ng-model` and the HTML element
814-
* in the DOM.
819+
* in the DOM. `Selector: [contenteditable][ng-model]`
815820
*
816821
* **Usage**
817822
*

0 commit comments

Comments
 (0)