I have a web app I am creating, and on one page I have created a wizard like form for the user to fill out using ng-show an dhide.
<div ng-show="tab === 1">
<input type="text" ng-model="mealName">
<button ng-click="setTab(2)">Add Description</button>
</div>
<div ng-show="tab === 2">
<input type="text" ng-model="mealDesc" >
<button ng-click="setTab(3)">Add Macros</button>
</div>
This code is a snippet showing the idea, that each time the user clicks the button, its hides one div and shows the next. All this works fine, however the fields do not store the values that are entered for later use in functions
Anyone know why this would be happening?