Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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>
Add Comment
Please, Sign In to add comment