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 http://plnkr.co/edit/8FnZ2disRS3ALdRWVvpT?p=preview
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?