Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <div ng-controller="myController">
  2. <p><label>value a : </label><input type="text" ng-model="valuea" name="valuea" id="valuea" /></p>
  3. <p><label>value b : </label><input name="valueb" id="valueb" ng-model="valueb"/></p>
  4.  
  5. <button type="button" ng-click = "add()" >Sign In</button>
  6. </div>
  7.  
  8. <script>
  9. angular.module('myApp', [])
  10. .controller('myController', ['$scope', function($scope) {
  11. function myController($scope) {
  12. $scope.add = function(){
  13. alert("valuea:"+$scope.valuea);
  14. alert("valueb:"+$scope.valueb);
  15. }
  16. };
  17. }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement