Remove or hide specific items in select list using ng-options in AngularJS

by Tahara Ezell   Last Updated March 21, 2017 14:04 PM

I would like to remove/hide a few options from a select list that uses ng-options. In my list I have 18 items and I simply want to remove 6 of them from the list but without deleting them (their in my database being used elsewhere). I don't want the user to be able to see them in this list. Is there a way to loop thru and hide them using ng-options?

In my html:

All Interest

In my Controller:

if (model.data.passionPointFilter) { txThingsToDo.loadAll().then(function (thingstodo) { model.passionPoints.loading = false; model.passionPoints.items = thingstodo.results; });



Related Questions


Does escape fragment works without hash in url?

Updated May 17, 2017 06:04 AM

Google not crawling AngularJS site

Updated July 23, 2017 21:04 PM



Javascript framework and SEO?

Updated June 01, 2017 12:04 PM