Guest User

Untitled

a guest
Jan 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <div ng-app="myApp" ng-controller="myCtrl">
  2.  
  3. First Name: <input type="text" ng-model="firstName"><br>
  4. Last Name: <input type="text" ng-model="lastName"><br>
  5. Full Name:<input ng-bind="firstName+" "+lastName>
  6.  
  7. <script>
  8. var app = angular.module('myApp', []);
  9. app.controller('myCtrl', function($scope) {
  10. $scope.firstName = "John";
  11. $scope.lastName = "Doe";
  12. });
  13. </script>
Add Comment
Please, Sign In to add comment