oferh / ng2-completer

Angular 2 autocomplete component
http://oferh.github.io/ng2-completer/
MIT License
347 stars 172 forks source link

placeholder does not work #367

Closed pueaau closed 6 years ago

pueaau commented 6 years ago

When I specify an empty string or nothing as placeholder the field is empty. When I specify [placeholder]="Sometext" the text field shows 'undefined' instead.

picolo74 commented 6 years ago

placeholder is a string, you need to add ' : [placeholder]="'Sometext'" or [placeholder]="someVar" this.someVar = 'Sometext'

pueaau commented 6 years ago

Thanks. I knew it required a string, just not that it required a string within a string...