Advertisement
Guest User

Untitled

a guest
Sep 19th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. **register.html**
  2. <div ng-app="NewApp" ng-controller="myCtrl">
  3. <div>
  4. <div>
  5. First name: <input type="text" ng-model="FirstName">
  6. </div>
  7. <div>
  8. Last name: <input type="text" ng-model="LastName">
  9. </div>
  10. <div>
  11. Username: <input type="text" ng-model="Email">
  12. </div>
  13. <div>
  14. Password: <input type="password">
  15. </div>
  16. </div>
  17. <form>
  18. <div ng-click="click">
  19. <button onclick="window.location.href = 'AfterRegister.html'">Register</button>
  20. <button1>Cancel</button1>
  21. </div>
  22. </form>
  23. <div>Full Name: {{FirstName+" "+LastName}} Email: {{Email}}</div>
  24.  
  25. register.js:
  26. var app = angular.module('NewApp', []);
  27. app.controller('myCtrl', function($scope) {
  28. $scope.FirstName = "";
  29. $scope.LastName = "";
  30. $scope.Email = "";
  31. });
  32.  
  33. AfterRegister.html:
  34. <div ng-app="NewApp" ng-controller="myCtrl">
  35. Full Name: {{FirstName+LastName}} Email: {{Email}}</div>
  36. <script src="register.js"></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement