There is three forms in same Html. In the first form there is a radio button. If one button got selected the second form will be appear. In the second form there is a button. If that button clicked third form will be appear, in this form i need to show the id and the name which was selected in first form. How can i do that?
Html
<form name="firstform">
<table class="table">
<tr>
<th>Select</th>
<th>Name</th></tr>
<tr ng:repeat="d in dList">
<td><input type="radio" ng-click="Selected(d.Id)" name="Selection" /></td>
<td>{{d.Name}}</td></tr>
</table>
</form>
<form name="secondform">
<table class="table">
<td>racename</td>
<td>race</td>
<tr><td><input type="submit" class="btn btn-default" value="Continue" ng-click="savedetails()" /></td>
</tr>
</table>
</form>
<form name="thirdform">
<table class="table">
<tr>
<td>id</td>
<td>name</td></tr>
<tr><td>{{Id}}</td>
<td>{{name}}</td></tr>
</table>
</form>
angular Controller
$scope.Selected = function (id, name) {
$scope.firstform= false;
$scope.secondform= true;
console.log(id);
}
$scope.savedetails= function () {
$scope.firstform= false;
$scope.secondform= false;
$scope.thirdform= false;
}
$scope.1st form, what is thatspacebetween1standform? it should change to1st_form