Taking the item top in the ion-list


#1

Hello everyone,
I have a question.I have a list with ion list and have items with *ngFor which are taken from mongodb but I want to to put some items like advertisement items and want to keep them at the top or maybe at the 2rd 3rd place so that users will be able to see them even if more items added. I tought give a priority to each item at the mongodb but i dont know how can i list them.What is your ideas Im a bit new sorry

Thank you
Best regards


#2

What about just adding your advertisements items outside of your mongodb list on top?

So this structure:

ngFor let advertisement of advertisements
ngFor let mongodbitem of mongodbitems