I just want to fill full name input box by inserting first name and last name input box. I just bind the data from above two values in input box, but it does not show in full name input box. Thanks in advance!! Code:
<div ng-app="myApp" ng-controller="myCtrl">
First Name: <input type="text" ng-model="firstName"><br>
Last Name: <input type="text" ng-model="lastName"><br>
Full Name:<input ng-bind="firstName+" "+lastName>
<script>
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
$scope.firstName = "John";
$scope.lastName = "Doe";
});
</script>