title: passing array from from view to another with angularJS
body: <p>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!</p>
  <pre><code> &lt;form ng-submit=&quot;adduser()&quot;&gt;
              &lt;label class=&quot;lbl&quot; &gt;First name:&lt;/label&gt;
              &lt;input type=&quot;text&quot; ng-model=&quot;newuser.fName&quot;&gt;&lt;br&gt;
  
              &lt;label class=&quot;lbl&quot; &gt;Last name:&lt;/label&gt;
              &lt;input type=&quot;text&quot; ng-model=&quot;newuser.lName&quot;&gt;&lt;br&gt;
  
              &lt;label class=&quot;lbl&quot; &gt;Age:&lt;/label&gt;
              &lt;input type=&quot;number&quot; ng-model=&quot;newuser.age&quot;&gt;&lt;br&gt;
  
              &lt;label class=&quot;lbl&quot; &gt;Gender:&lt;/label&gt;&lt;br&gt;
              &lt;input type=&quot;radio&quot; name=&quot;gender&quot; value=&quot;Male&quot; ng-model=&quot;newuser.selectVal&quot;&gt;&lt;label &gt;Male&lt;/label&gt;      &lt;input type=&quot;radio&quot; name=&quot;gender&quot; id=&quot;fml&quot; value=&quot;Female&quot; ng-model=&quot;newuser.selectVal&quot;&gt;&lt;label&gt;Female&lt;/label&gt;&lt;br&gt;
  
              &lt;label class=&quot;lbl&quot; &gt;About user:&lt;/label&gt;&lt;br&gt;
              &lt;textarea ng-model=&quot;newuser.about&quot; id=&quot;txtarea&quot; ng-model=&quot;newuser.about&quot;&gt;&lt;/textarea&gt;&lt;br&gt;
  
  
              &lt;button type=&quot;submit&quot;&gt;Save&lt;/button&gt;
              &lt;button id=&quot;clear&quot;&gt;Clear all&lt;/button&gt;
          &lt;/form&gt;
  </code></pre>