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

Commit e6688ec

Browse files
meldaravaniellgalfaso
authored andcommitted
docs(guide/Forms): format headers to match other docs
Primary header with page title, secondary headers for each description section.
1 parent 4fdac4d commit e6688ec

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

docs/content/guide/forms.ngdoc

+10-8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
@sortOrder 290
44
@description
55

6+
# Forms
7+
68
Controls (`input`, `select`, `textarea`) are ways for a user to enter data.
79
A Form is a collection of controls for the purpose of grouping related controls together.
810

@@ -14,7 +16,7 @@ be circumvented and thus can not be trusted. Server-side validation is still nec
1416
secure application.
1517

1618

17-
# Simple form
19+
## Simple form
1820
The key directive in understanding two-way data-binding is {@link ng.directive:ngModel ngModel}.
1921
The `ngModel` directive provides the two-way data-binding by synchronizing the model to the view,
2022
as well as view to the model. In addition it provides an {@link ngModel.NgModelController API}
@@ -62,7 +64,7 @@ For example: inputs of type `email` must have a value in the form of `user@domai
6264

6365

6466

65-
# Using CSS classes
67+
## Using CSS classes
6668

6769
To allow styling of form as well as controls, `ngModel` adds these CSS classes:
6870

@@ -126,7 +128,7 @@ and failing to satisfy its validity.
126128

127129

128130

129-
# Binding to form and control state
131+
## Binding to form and control state
130132

131133
A form is an instance of {@link form.FormController FormController}.
132134
The form instance can optionally be published into the scope using the `name` attribute.
@@ -208,7 +210,7 @@ didn't interact with a control
208210

209211

210212

211-
# Custom model update triggers
213+
## Custom model update triggers
212214

213215
By default, any change to the content will trigger a model update and form validation. You can
214216
override this behavior using the {@link ng.directive:ngModelOptions ngModelOptions} directive to
@@ -249,7 +251,7 @@ will update the model only when the control loses focus (blur event).
249251

250252

251253

252-
# Non-immediate (debounced) model updates
254+
## Non-immediate (debounced) model updates
253255

254256
You can delay the model update/validation by using the `debounce` key with the
255257
{@link ng.directive:ngModelOptions ngModelOptions} directive. This delay will also apply to
@@ -290,7 +292,7 @@ after last change.
290292
</file>
291293
</example>
292294

293-
# Custom Validation
295+
## Custom Validation
294296

295297
Angular provides basic implementation for most common HTML5 {@link ng.directive:input input}
296298
types: ({@link input[text] text}, {@link input[number] number}, {@link input[url] url},
@@ -407,7 +409,7 @@ In the following example we create two directives:
407409
</file>
408410
</example>
409411

410-
# Modifying built-in validators
412+
## Modifying built-in validators
411413

412414
Since Angular itself uses `$validators`, you can easily replace or remove built-in validators,
413415
should you find it necessary. The following example shows you how to overwrite the email validator
@@ -452,7 +454,7 @@ Note that you can alternatively use `ng-pattern` to further restrict the validat
452454
</example>
453455

454456

455-
# Implementing custom form controls (using `ngModel`)
457+
## Implementing custom form controls (using `ngModel`)
456458
Angular implements all of the basic HTML form controls ({@link ng.directive:input input},
457459
{@link ng.directive:select select}, {@link ng.directive:textarea textarea}),
458460
which should be sufficient for most cases. However, if you need more flexibility,

0 commit comments

Comments
 (0)