0

I have a view contain this form, I need to display this new user after clicking the save button on another page/view in the HTML table. Any help, please!

 <form ng-submit="adduser()">
            <label class="lbl" >First name:</label>
            <input type="text" ng-model="newuser.fName"><br>

            <label class="lbl" >Last name:</label>
            <input type="text" ng-model="newuser.lName"><br>

            <label class="lbl" >Age:</label>
            <input type="number" ng-model="newuser.age"><br>

            <label class="lbl" >Gender:</label><br>
            <input type="radio" name="gender" value="Male" ng-model="newuser.selectVal"><label >Male</label>      <input type="radio" name="gender" id="fml" value="Female" ng-model="newuser.selectVal"><label>Female</label><br>

            <label class="lbl" >About user:</label><br>
            <textarea ng-model="newuser.about" id="txtarea" ng-model="newuser.about"></textarea><br>


            <button type="submit">Save</button>
            <button id="clear">Clear all</button>
        </form>
Akif
  • 7,098
  • 7
  • 27
  • 53
Amise
  • 1
  • 1

1 Answers1

0

If you want to show the user data in next router page, You can take help of AngularJS service and AngularJS Factory By using them you can pass the data one page to another page

But

If you want to show the data that is completly next browser Tab then you can use $sessionStorage and $localStorage in angular

Also check this link