File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,13 @@ You can read more about autocompletes in the [Material Design spec](https://mate
3
3
4
4
### Simple autocomplete
5
5
6
- Start by adding a regular ` matInput ` to the page. Let's assume you're using the ` formControl `
7
- directive from the ` @angular/forms ` module to track the value of the input.
6
+ Start by adding a regular ` matInput ` to your template. Let's assume you're using the ` formControl `
7
+ directive from ` ReactiveFormsModule ` to track the value of the input.
8
+
9
+ > Note: It is possible to use template-driven forms instead, if you prefer. We use reactive forms
10
+ in this example because it makes subscribing to changes in the input's value easy. For this example, be sure to
11
+ import ` ReactiveFormsModule ` from ` @angular/forms ` into your ` NgModule ` . If you are unfamiliar with using reactive
12
+ forms, you can read more about the subject in the [ Angular documentation] ( https://angular.io/guide/reactive-forms ) .
8
13
9
14
* my-comp.html*
10
15
``` html
You can’t perform that action at this time.
0 commit comments