title: how to send data of model to text field using angular?
body: <p>I have a button.On button click I open the model , in that model i have text field and submit button .I need to set the value of input field to input field which is on screen after click of submit button.how to make controller of model and where we write the click event of submit button ?
  here is plunker
  <a href="http://plnkr.co/edit/8FnZ2disRS3ALdRWVvpT?p=preview" rel="nofollow">http://plnkr.co/edit/8FnZ2disRS3ALdRWVvpT?p=preview</a></p>
  
  <pre><code>  var app= angular.module('app',['ui.bootstrap']);
      app.controller('cntr', function($scope, $modal){
             $scope.onButtonClick = function () {
  
          $modal.open({
              templateUrl: 'myModalContent.html',
              backdrop: true,
              windowClass: 'modal',
  
  
          });
      };
        })
  how to set value in input field?
  </code></pre>