I am using Angular2 but quite new at it as well.
I need to solve this problem out. I have a select with option values from 1 to 4.
According to the option chosen i would like to show as many items as the select option value shows like in the images below.
room number chosen = 1 - 1 item shown
room number chosen = 2 - 2 items shown
Any ideas about how it can be done?
As stated here: How to apply filters to *ngFor
You can simply apply a filter on the element. e.g.