oferh / ng2-completer

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

how to use ngif in ng2-completer #380

Closed andrejm7 closed 6 years ago

andrejm7 commented 6 years ago

Good evening, how do I use ngif in ng2-completer?

I have this example .. my model ...

export class State { idEstado: number; description: string; }

export class City { idCity: number; idEstado: number; description: string; }

When selecting a State, I need the ng2-completer to list only a few cities.

andrejm7 commented 6 years ago

https://embed.plnkr.co/fmDvpV/

I want something like this ... but there is a mistake .. when I select Captain Benjamin Sisko (shipClass: 2) he also shows me the USS Akira and USS Gryphon in which they are from (class 1)

andrejm7 commented 6 years ago

its ok..