Skip to content

Commit 54e1671

Browse files
author
Plamena Radneva
committed
modified the example in app.component a bit
1 parent cdec5b8 commit 54e1671

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ <h3>sq-tags-input</h3>
7373
<h3>sq-typeahead with array of objects - multiple choice</h3>
7474
</header>
7575

76-
<sq-typeahead name="typeahead1" displayProp="label" multiple="true" formControlName="typeahead1" [searchResults]="searchResults"
76+
<sq-typeahead name="typeahead1" displayProp="myCustomProp" multiple="true" formControlName="typeahead1" [searchResults]="searchResults"
7777
(onUserInputEnd)="searchMethod($event)" controlLabel="Typeahead*" controlPlaceholder="Type something in">
7878
</sq-typeahead>
7979
</section>

src/app/app.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class AppComponent {
4343
searchMethod(query) {
4444
this.searchResults = [
4545
{
46-
label: 'option1',
46+
myCustomProp: 'option1',
4747
value: 'someVal1',
4848
prop: 1,
4949
uid: 12,
@@ -54,7 +54,7 @@ export class AppComponent {
5454
},
5555
},
5656
{
57-
label: 'option2',
57+
myCustomProp: 'option2',
5858
value: 'someVal2',
5959
prop: 2,
6060
uid: 22,
@@ -65,7 +65,7 @@ export class AppComponent {
6565
},
6666
},
6767
{
68-
label: 'option3',
68+
myCustomProp: 'option3',
6969
value: 'someVal3',
7070
prop: 3,
7171
uid: 32,

0 commit comments

Comments
 (0)