Skip to content

Commit cbdf1a9

Browse files
karatinayuangao
authored andcommitted
docs(autocomplete): fix code snippet (#3509)
1 parent 58c5d17 commit cbdf1a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/autocomplete/autocomplete.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Then bind it to the autocomplete's `displayWith` property.
114114

115115
<md-autocomplete #auto="mdAutocomplete" [displayWith]="displayFn">
116116
<md-option *ngFor="let option of filteredOptions | async" [value]="option">
117-
{{ option }}
117+
{{ option.name }}
118118
</md-option>
119119
</md-autocomplete>
120120
```

0 commit comments

Comments
 (0)