Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- angular.module('quiz')
- .controller('RegistrationCtrl', ['$scope', '$ionicPopup', 'MobileUserService', function ($scope, $ionicPopup, MobileUserService) {
- 'use strict';
- var reg = this;
- $scope.registerUser = function(){
- if ($scope.formData.password == $scope.confirmPassword){
- MobileUserService.addMobileUser($scope.formData)
- }
- else{
- console.log("passwords not maches!");
- }};
- }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement