title: Pass Textbox Data To A Javascript Array Using Angular
body: <p>what is the simplest way to type in a textbox, ng-click a button and send that text from the textbox to an array? I've put question marks to show where I know code goes, but I'm not sure what. Here's my code:</p>
  
  <p>My HTML Looks like this:</p>
  
  <pre><code>&lt;input class="textBox" style="width: 320px; color:black; margin-bottom:20px" type="text"/&gt;
  
  &lt;input class="button" style="width:100px" ng-click="addWorkflow(?,?); toggleShow('addWorkflow')" type="submit" value="Add"&gt;
  </code></pre>
  
  <p>This is the JS array I want the typed text to go to, specifically the "Name" and "Description" objects.</p>
  
  <pre><code> $scope.addWorkflow = function(?, ?) {
    var workflow = {
         Id: 0,
         Name: ?,
         Description: ?,
         Lens: "",
         Focus: "",
         Aperture: ""
     } 
  
     $scope.workflows.push(workflow);
  
   }; 
  </code></pre>