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

Commit 21a3cea

Browse files
takashipetebacondarwin
authored andcommitted
docs(ngModelController): fix indentation code block
Closes #6660
1 parent d8c5586 commit 21a3cea

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/ng/directive/input.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,14 +1430,14 @@ var VALID_CLASS = 'ng-valid',
14301430
* @property {Array.<Function>} $formatters Array of functions to execute, as a pipeline, whenever
14311431
the model value changes. Each function is called, in turn, passing the value through to the
14321432
next. Used to format / convert values for display in the control and validation.
1433-
* ```js
1434-
* function formatter(value) {
1435-
* if (value) {
1436-
* return value.toUpperCase();
1437-
* }
1438-
* }
1439-
* ngModel.$formatters.push(formatter);
1440-
* ```
1433+
* ```js
1434+
* function formatter(value) {
1435+
* if (value) {
1436+
* return value.toUpperCase();
1437+
* }
1438+
* }
1439+
* ngModel.$formatters.push(formatter);
1440+
* ```
14411441
*
14421442
* @property {Array.<Function>} $viewChangeListeners Array of functions to execute whenever the
14431443
* view value has changed. It is called with no arguments, and its return value is ignored.

0 commit comments

Comments
 (0)