I have a very simple question for you. I am currently trying to change the allowed input in my label depending on which ID of the tab I am currently at.
It is a hotel booking app using ionic 1 and angular. Say I am at the hotelroom with an ID of '1', then I want to set the maximum input to 2. But if Im at hotelroom with an ID of '2' I want to set the maximum to 5. Can it be done solely within the label tags?
<label class="item item-input">
<input type="number" name="adults" required
placeholder="Antal vuxna" ng-model="data.people">
</label>
Answers shown as examples are highly appreciated :) Thanks in advance!
ng-if
based on the hotelroom ID and change the max value attribute on the inputs. Option B, useng-change
and validate the value when the user changes it.