How we can have a global autocomplete (rather than writing filter, and all code in every controller for using it on different screens) ?
Like, I have a autocomplete for cities which fetch cities from APIs, rather than writing all the code (that is given in codepen example) on all controller, I am thinking to have it at common place and just get the selected value of it in all controllers and use it
Yeah, basically it doesn’t really matter what are you rely on… factories / services are mostly the same. I use factories, mostly if there is a model related to it (e.g. Users), services are great for some easy ReST calls. But I think you can handle it however you like… :smile: