daily pastebin goal
13%
SHARE
TWEET

Untitled

a guest Mar 17th, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var vm = angular.module('app', []).controller('RegisterController', function ($http, $scope) {
  2.     var vm = this;
  3.     $scope.passInputMessage='Hasło';
  4.     $scope.rePassInputMessage='Powtóż hasło';
  5.     vm.addUser=function (characters) {
  6.         if (characters.password === characters.rePassword) {
  7.             $http({
  8.                 method: 'POST',
  9.                 url: 'api/user',
  10.                 data: characters
  11.             })
  12.         } else {
  13.             $scope.passInputMessage='Hasła się nie zgadzają!';
  14.             $scope.rePassInputMessage='Hasła się nie zgadzają!';
  15.         }
  16.  
  17.     }
  18.  
  19.  
  20. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top