I'm trying to populate a full name input box by combining the first name and last name input boxes. I've bound the data from these two values, but for some reason it's not displaying in the full name input box. Any help is appreciated!! 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>