@@ -1618,12 +1618,15 @@ is set to `true`. The parse error is stored in `ngModel.$error.parse`.
1618
1618
*
1619
1619
* @description
1620
1620
*
1621
- * `NgModelController` provides API for the `ng-model` directive. The controller contains
1622
- * services for data-binding, validation, CSS updates, and value formatting and parsing. It
1623
- * purposefully does not contain any logic which deals with DOM rendering or listening to
1624
- * DOM events. Such DOM related logic should be provided by other directives which make use of
1625
- * `NgModelController` for data-binding.
1626
- *
1621
+ * `NgModelController` provides API for the {@link ngModel `ngModel`} directive.
1622
+ * The controller contains services for data-binding, validation, CSS updates, and value formatting
1623
+ * and parsing. It purposefully does not contain any logic which deals with DOM rendering or
1624
+ * listening to DOM events.
1625
+ * Such DOM related logic should be provided by other directives which make use of
1626
+ * `NgModelController` for data-binding to control elements.
1627
+ * Angular provides this DOM logic for most {@link input `input`} elements.
1628
+ * At the end of this page you can find a {@link ngModel.NgModelController#custom-control-example
1629
+ * custom control example} that uses `ngModelController` to bind to `contenteditable` elements.
1627
1630
*
1628
1631
* @example
1629
1632
* ### Custom Control Example
@@ -1861,9 +1864,9 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
1861
1864
* @description
1862
1865
* Sets the control to its pristine state.
1863
1866
*
1864
- * This method can be called to remove the ' ng-dirty' class and set the control to its pristine
1865
- * state (ng-pristine class). A model is considered to be pristine when the model has not been changed
1866
- * from when first compiled within then form .
1867
+ * This method can be called to remove the ` ng-dirty` class and set the control to its pristine
1868
+ * state (` ng-pristine` class). A model is considered to be pristine when the control
1869
+ * has not been changed from when first compiled.
1867
1870
*/
1868
1871
this . $setPristine = function ( ) {
1869
1872
ctrl . $dirty = false ;
@@ -1898,8 +1901,8 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
1898
1901
* @description
1899
1902
* Sets the control to its untouched state.
1900
1903
*
1901
- * This method can be called to remove the ' ng-touched' class and set the control to its
1902
- * untouched state (ng-untouched class). Upon compilation, a model is set as untouched
1904
+ * This method can be called to remove the ` ng-touched` class and set the control to its
1905
+ * untouched state (` ng-untouched` class). Upon compilation, a model is set as untouched
1903
1906
* by default, however this function can be used to restore that state if the model has
1904
1907
* already been touched by the user.
1905
1908
*/
@@ -1916,10 +1919,9 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
1916
1919
* @description
1917
1920
* Sets the control to its touched state.
1918
1921
*
1919
- * This method can be called to remove the 'ng-untouched' class and set the control to its
1920
- * touched state (ng-touched class). A model is considered to be touched when the user has
1921
- * first interacted (focussed) on the model input element and then shifted focus away (blurred)
1922
- * from the input element.
1922
+ * This method can be called to remove the `ng-untouched` class and set the control to its
1923
+ * touched state (`ng-touched` class). A model is considered to be touched when the user has
1924
+ * first focused the control element and then shifted focus away from the control (blur event).
1923
1925
*/
1924
1926
this . $setTouched = function ( ) {
1925
1927
ctrl . $touched = true ;
0 commit comments