Skip to content

Instantly share code, notes, and snippets.

@ecmelkytz
Created August 8, 2015 17:36
Show Gist options
  • Select an option

  • Save ecmelkytz/92dbc53c38bdece65346 to your computer and use it in GitHub Desktop.

Select an option

Save ecmelkytz/92dbc53c38bdece65346 to your computer and use it in GitHub Desktop.
// Code goes here
var app = angular.module('myApp', []);
app.controller('SignupForm', ['$scope', function($scope){
$scope.submitform = function(){
alert($scope.signup_form.$valid);
}
$scope.checkPassword = function () {
$scope.signup_form.password_confirmation.$error.match = $scope.user.password !== $scope.user.password_confirmation;
};
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment