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 ( { 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

SEO and Progressive Web Apps

Updated February 13, 2018 13:04 PM

Why doesn’t Googlebot render the content?

Updated August 11, 2018 07:04 AM