File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments